Class ApacheMinaFtplet
java.lang.Object
org.apache.ftpserver.ftplet.DefaultFtplet
org.springframework.integration.ftp.server.ApacheMinaFtplet
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.Ftplet
,Aware
,BeanNameAware
,InitializingBean
,ApplicationEventPublisherAware
public class ApacheMinaFtplet extends org.apache.ftpserver.ftplet.DefaultFtplet implements ApplicationEventPublisherAware, BeanNameAware, InitializingBean
A listener for FTP events emitted by an Apache Mina ftp server.
It emits selected events as Spring Framework
ApplicationEvent
s
which are subclasses of ApacheMinaFtpEvent
.- Since:
- 5.2
- Author:
- Gary Russell
-
Constructor Summary
Constructors Constructor Description ApacheMinaFtplet()
-
Method Summary
Modifier and Type Method Description void
afterPropertiesSet()
protected ApplicationEventPublisher
getApplicationEventPublisher()
String
getBeanName()
org.apache.ftpserver.ftplet.FtpletResult
onAppendEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
org.apache.ftpserver.ftplet.FtpletResult
onConnect(org.apache.ftpserver.ftplet.FtpSession session)
org.apache.ftpserver.ftplet.FtpletResult
onDeleteEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
org.apache.ftpserver.ftplet.FtpletResult
onDisconnect(org.apache.ftpserver.ftplet.FtpSession session)
org.apache.ftpserver.ftplet.FtpletResult
onMkdirEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
org.apache.ftpserver.ftplet.FtpletResult
onRenameEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
org.apache.ftpserver.ftplet.FtpletResult
onRmdirEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
org.apache.ftpserver.ftplet.FtpletResult
onUploadEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request)
void
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
void
setBeanName(String name)
String
toString()
-
Constructor Details
-
ApacheMinaFtplet
public ApacheMinaFtplet()
-
-
Method Details
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
getApplicationEventPublisher
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
getBeanName
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
onConnect
public org.apache.ftpserver.ftplet.FtpletResult onConnect(org.apache.ftpserver.ftplet.FtpSession session) throws org.apache.ftpserver.ftplet.FtpException, IOException- Specified by:
onConnect
in interfaceorg.apache.ftpserver.ftplet.Ftplet
- Overrides:
onConnect
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onDisconnect
public org.apache.ftpserver.ftplet.FtpletResult onDisconnect(org.apache.ftpserver.ftplet.FtpSession session) throws org.apache.ftpserver.ftplet.FtpException, IOException- Specified by:
onDisconnect
in interfaceorg.apache.ftpserver.ftplet.Ftplet
- Overrides:
onDisconnect
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onDeleteEnd
public org.apache.ftpserver.ftplet.FtpletResult onDeleteEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onDeleteEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onUploadEnd
public org.apache.ftpserver.ftplet.FtpletResult onUploadEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onUploadEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onRmdirEnd
public org.apache.ftpserver.ftplet.FtpletResult onRmdirEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onRmdirEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onMkdirEnd
public org.apache.ftpserver.ftplet.FtpletResult onMkdirEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onMkdirEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onAppendEnd
public org.apache.ftpserver.ftplet.FtpletResult onAppendEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onAppendEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
onRenameEnd
public org.apache.ftpserver.ftplet.FtpletResult onRenameEnd(org.apache.ftpserver.ftplet.FtpSession session, org.apache.ftpserver.ftplet.FtpRequest request) throws org.apache.ftpserver.ftplet.FtpException, IOException- Overrides:
onRenameEnd
in classorg.apache.ftpserver.ftplet.DefaultFtplet
- Throws:
org.apache.ftpserver.ftplet.FtpException
IOException
-
toString
-