|
||||||||||
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(String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
IpFilter ipFilter)
Constructor for internal use, do not use directly. |
|
NioListener(String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
List<InetAddress> blockedAddresses,
List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Deprecated. Use the constructor with IpFilter instead. Constructor for internal use, do not use directly. Instead use ListenerFactory |
Method Summary | |
---|---|
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, 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 Detail |
---|
@Deprecated public NioListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, List<InetAddress> blockedAddresses, List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
ListenerFactory
public NioListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, IpFilter ipFilter)
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 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 |