public class NioListener extends AbstractListener
Listener implementation.| Constructor and Description |
|---|
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 |
NioListener(String serverAddress,
int port,
boolean implicitSsl,
SslConfiguration sslConfiguration,
DataConnectionConfiguration dataConnectionConfig,
int idleTimeout,
SessionFilter sessionFilter)
Constructor for internal use, do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBlockedAddresses, getBlockedSubnets, getDataConnectionConfiguration, getIdleTimeout, getPort, getServerAddress, getSessionFilter, getSslConfiguration, isImplicitSsl, setPort@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)
ListenerFactorypublic NioListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, SessionFilter sessionFilter)
ListenerFactorypublic void start(FtpServerContext context)
Listenercontext - The current FtpServerContextListener.start(FtpServerContext)public void stop()
ListenerListener.stop()public boolean isStopped()
ListenerListener.isStopped()public boolean isSuspended()
ListenerListener.isSuspended()public void resume()
ListenerListener.resume()public void suspend()
ListenerListener.resume() method. The method should not
return until the listener has stopped accepting socket requests.Listener.suspend()public Set<FtpIoSession> getActiveSessions()
ListenerSet would be returned.Listener.getActiveSessions()Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.