Package io.milton.ftp

Class MiltonListener

java.lang.Object
org.apache.ftpserver.listener.nio.AbstractListener
io.milton.ftp.MiltonListener
All Implemented Interfaces:
org.apache.ftpserver.listener.Listener

public class MiltonListener extends org.apache.ftpserver.listener.nio.AbstractListener
This class is copied from org.apache.ftpserver.impl.DefaultFtpHandler The only change is that this takes a FtpHandler in its constructor which is what gets hooked up to Mina. This allows a custom FtpHandler
Author:
brad
  • Constructor Summary

    Constructors
    Constructor
    Description
    MiltonListener(String serverAddress, int port, boolean implicitSsl, org.apache.ftpserver.ssl.SslConfiguration sslConfiguration, org.apache.ftpserver.DataConnectionConfiguration dataConnectionConfig, int idleTimeout, List<InetAddress> blockedAddresses, List<org.apache.mina.filter.firewall.Subnet> blockedSubnets, org.apache.ftpserver.impl.FtpHandler handler)
    Constructor for internal use, do not use directly.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<org.apache.ftpserver.impl.FtpIoSession>
     
    boolean
     
    boolean
     
    void
     
    void
    start(org.apache.ftpserver.impl.FtpServerContext context)
     
    void
     
    void
     

    Methods inherited from class org.apache.ftpserver.listener.nio.AbstractListener

    getBlockedAddresses, getBlockedSubnets, getDataConnectionConfiguration, getIdleTimeout, getIpFilter, getPort, getServerAddress, getSslConfiguration, isImplicitSsl, setPort

    Methods inherited from class java.lang.Object

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

    • MiltonListener

      public MiltonListener(String serverAddress, int port, boolean implicitSsl, org.apache.ftpserver.ssl.SslConfiguration sslConfiguration, org.apache.ftpserver.DataConnectionConfiguration dataConnectionConfig, int idleTimeout, List<InetAddress> blockedAddresses, List<org.apache.mina.filter.firewall.Subnet> blockedSubnets, org.apache.ftpserver.impl.FtpHandler handler)
      Constructor for internal use, do not use directly. Instead use ListenerFactory
  • Method Details

    • start

      public void start(org.apache.ftpserver.impl.FtpServerContext context)
      See Also:
      • Listener.start(FtpServerContext)
    • stop

      public void stop()
      See Also:
      • Listener.stop()
    • isStopped

      public boolean isStopped()
      See Also:
      • Listener.isStopped()
    • isSuspended

      public boolean isSuspended()
      See Also:
      • Listener.isSuspended()
    • resume

      public void resume()
      See Also:
      • Listener.resume()
    • suspend

      public void suspend()
      See Also:
      • Listener.suspend()
    • getActiveSessions

      public Set<org.apache.ftpserver.impl.FtpIoSession> getActiveSessions()
      See Also:
      • Listener.getActiveSessions()