Class ApacheMinaSftpEventListener
java.lang.Object
org.springframework.integration.sftp.server.ApacheMinaSftpEventListener
- All Implemented Interfaces:
EventListener,org.apache.sshd.common.util.SshdEventListener,org.apache.sshd.sftp.server.SftpEventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationEventPublisherAware
public class ApacheMinaSftpEventListener
extends Object
implements org.apache.sshd.sftp.server.SftpEventListener, org.springframework.context.ApplicationEventPublisherAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
A listener for SFTP events emitted by an Apache Mina sshd/sftp server.
It emits selected events as Spring Framework
ApplicationEvents
which are subclasses of ApacheMinaSftpEvent.- Since:
- 5.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcreated(org.apache.sshd.server.session.ServerSession session, Path path, Map<String, ?> attrs, Throwable thrown) voiddestroying(org.apache.sshd.server.session.ServerSession session) protected org.springframework.context.ApplicationEventPublishervoidinitialized(org.apache.sshd.server.session.ServerSession session, int version) voidmoved(org.apache.sshd.server.session.ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts, Throwable thrown) voidremoved(org.apache.sshd.server.session.ServerSession session, Path path, boolean isDirectory, Throwable thrown) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetBeanName(String name) toString()voidwritten(org.apache.sshd.server.session.ServerSession session, String remoteHandle, org.apache.sshd.sftp.server.FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, Throwable thrown) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.sftp.server.SftpEventListener
blocked, blocking, closed, closing, creating, exiting, linked, linking, modifiedAttributes, modifyingAttributes, moving, open, openFailed, opening, read, readEntries, reading, readingEntries, received, receivedExtension, removing, unblocked, unblocking, writing
-
Constructor Details
-
ApacheMinaSftpEventListener
public ApacheMinaSftpEventListener()
-
-
Method Details
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
getApplicationEventPublisher
protected org.springframework.context.ApplicationEventPublisher getApplicationEventPublisher() -
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getBeanName
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
initialized
public void initialized(org.apache.sshd.server.session.ServerSession session, int version) - Specified by:
initializedin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
destroying
public void destroying(org.apache.sshd.server.session.ServerSession session) - Specified by:
destroyingin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
created
public void created(org.apache.sshd.server.session.ServerSession session, Path path, Map<String, ?> attrs, Throwable thrown) - Specified by:
createdin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
removed
public void removed(org.apache.sshd.server.session.ServerSession session, Path path, boolean isDirectory, Throwable thrown) - Specified by:
removedin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
written
public void written(org.apache.sshd.server.session.ServerSession session, String remoteHandle, org.apache.sshd.sftp.server.FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, Throwable thrown) - Specified by:
writtenin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
moved
public void moved(org.apache.sshd.server.session.ServerSession session, Path srcPath, Path dstPath, Collection<CopyOption> opts, Throwable thrown) - Specified by:
movedin interfaceorg.apache.sshd.sftp.server.SftpEventListener
-
toString
-