|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.listener.nio.AbstractListener
org.apache.ftpserver.listener.nio.NioListener
public class NioListener
Internal class, do not use directly.
The default Listener
implementation.
Constructor Summary | |
---|---|
NioListener(java.lang.String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
java.util.List<java.net.InetAddress> blockedAddresses,
java.util.List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Constructor for internal use, do not use directly. |
Method Summary | |
---|---|
java.util.Set<FtpIoSession> |
getActiveSessions()
Returns the currently active sessions for this listener. |
boolean |
isStopped()
Checks if the listener is currently started. |
boolean |
isSuspended()
Checks if the listener is currently suspended |
void |
resume()
Resumes a suspended listener. |
void |
start(FtpServerContext context)
Start the listener, will initiate the listener waiting on the socket. |
void |
stop()
Stop the listener, it should no longer except socket requests. |
void |
suspend()
Temporarily stops the listener from accepting socket requests. |
Methods inherited from class org.apache.ftpserver.listener.nio.AbstractListener |
---|
getBlockedAddresses, getBlockedSubnets, getDataConnectionConfiguration, getIdleTimeout, getPort, getServerAddress, getSslConfiguration, isImplicitSsl, setPort |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NioListener(java.lang.String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, java.util.List<java.net.InetAddress> blockedAddresses, java.util.List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
ListenerFactory
Method Detail |
---|
public void start(FtpServerContext context)
Listener
context
- The current FtpServerContext
Listener.start(FtpServerContext)
public void stop()
Listener
Listener.stop()
public boolean isStopped()
Listener
Listener.isStopped()
public boolean isSuspended()
Listener
Listener.isSuspended()
public void resume()
Listener
Listener.resume()
public void suspend()
Listener
Listener.resume()
method. The method should not
return until the listener has stopped accepting socket requests.
Listener.suspend()
public java.util.Set<FtpIoSession> getActiveSessions()
Listener
Set
would be returned.
Listener.getActiveSessions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |