|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Listener
Interface for the component responsible for waiting for incoming socket
requests and kicking off FtpIoSession
s
Method Summary | |
---|---|
java.util.Set<FtpIoSession> |
getActiveSessions()
Returns the currently active sessions for this listener. |
java.util.List<java.net.InetAddress> |
getBlockedAddresses()
Retrieves the InetAddress for which this listener blocks
connections |
java.util.List<org.apache.mina.filter.firewall.Subnet> |
getBlockedSubnets()
Retrieves the Subnet s for this listener blocks connections |
DataConnectionConfiguration |
getDataConnectionConfiguration()
Get configuration for data connections made within this listener |
int |
getIdleTimeout()
Get the number of seconds during which no network activity is allowed before a session is closed due to inactivity. |
int |
getPort()
Get the port on which this listener is waiting for requests. |
java.lang.String |
getServerAddress()
Get the InetAddress used for binding the local socket. |
SslConfiguration |
getSslConfiguration()
Get the SslConfiguration used for this listener |
boolean |
isImplicitSsl()
Is this listener in SSL mode automatically or must the client explicitly request to use SSL |
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 serverContext)
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. |
Method Detail |
---|
void start(FtpServerContext serverContext)
serverContext
- The current FtpServerContext
java.lang.Exception
- On error during start upvoid stop()
boolean isStopped()
void suspend()
resume()
method. The method should not
return until the listener has stopped accepting socket requests.
void resume()
boolean isSuspended()
java.util.Set<FtpIoSession> getActiveSessions()
Set
would be returned.
boolean isImplicitSsl()
SslConfiguration getSslConfiguration()
SslConfiguration
used for this listener
SslConfiguration
int getPort()
java.lang.String getServerAddress()
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfaces
InetAddress
, if setDataConnectionConfiguration getDataConnectionConfiguration()
int getIdleTimeout()
java.util.List<java.net.InetAddress> getBlockedAddresses()
InetAddress
for which this listener blocks
connections
InetAddress
esjava.util.List<org.apache.mina.filter.firewall.Subnet> getBlockedSubnets()
Subnet
s for this listener blocks connections
Subnet
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |