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,Aware,BeanNameAware,InitializingBean,ApplicationEventPublisherAware
public class ApacheMinaSftpEventListener
extends Object
implements org.apache.sshd.sftp.server.SftpEventListener, ApplicationEventPublisherAware, BeanNameAware, 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
- Author:
- Gary Russell, Artem Bilan
-
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 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(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
- Specified by:
setApplicationEventPublisherin interfaceApplicationEventPublisherAware
-
getApplicationEventPublisher
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
getBeanName
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
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
-