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 ApplicationEvents which are subclasses of ApacheMinaFtpEvent.
Since:
5.2
Author:
Gary Russell
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
    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
     
    void
     
     

    Methods inherited from class org.apache.ftpserver.ftplet.DefaultFtplet

    afterCommand, beforeCommand, destroy, init, onAppendStart, onDeleteStart, onDownloadEnd, onDownloadStart, onLogin, onMkdirStart, onRenameStart, onRmdirStart, onSite, onUploadStart, onUploadUniqueEnd, onUploadUniqueStart

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ApacheMinaFtplet

      public ApacheMinaFtplet()
  • Method Details

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface ApplicationEventPublisherAware
    • getApplicationEventPublisher

      protected ApplicationEventPublisher getApplicationEventPublisher()
    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface BeanNameAware
    • getBeanName

      public String getBeanName()
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface InitializingBean
    • 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 interface org.apache.ftpserver.ftplet.Ftplet
      Overrides:
      onConnect in class org.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 interface org.apache.ftpserver.ftplet.Ftplet
      Overrides:
      onDisconnect in class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.apache.ftpserver.ftplet.DefaultFtplet
      Throws:
      org.apache.ftpserver.ftplet.FtpException
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object