public class NioListener extends AbstractListener
Listener
implementation.Constructor and Description |
---|
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 |
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, getIpFilter, getPort, getServerAddress, 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)
ListenerFactory
public NioListener(String serverAddress, int port, boolean implicitSsl, SslConfiguration sslConfiguration, DataConnectionConfiguration dataConnectionConfig, int idleTimeout, IpFilter ipFilter)
ListenerFactory
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()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.