|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.listener.nio.AbstractListener
public abstract class AbstractListener
Internal class, do not use directly. Common base class for listener implementations
Constructor Summary | |
---|---|
AbstractListener(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.List<java.net.InetAddress> |
getBlockedAddresses()
Retrives 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 |
protected void |
setPort(int port)
Used internally to update the port after binding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ftpserver.listener.Listener |
---|
getActiveSessions, isStopped, isSuspended, resume, start, stop, suspend |
Constructor Detail |
---|
public AbstractListener(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 boolean isImplicitSsl()
isImplicitSsl
in interface Listener
public int getPort()
getPort
in interface Listener
protected void setPort(int port)
port
- public java.lang.String getServerAddress()
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfaces
getServerAddress
in interface Listener
InetAddress
, if setpublic SslConfiguration getSslConfiguration()
SslConfiguration
used for this listener
getSslConfiguration
in interface Listener
SslConfiguration
public DataConnectionConfiguration getDataConnectionConfiguration()
getDataConnectionConfiguration
in interface Listener
public int getIdleTimeout()
getIdleTimeout
in interface Listener
public java.util.List<java.net.InetAddress> getBlockedAddresses()
InetAddress
for which this listener blocks
connections
getBlockedAddresses
in interface Listener
InetAddress
espublic java.util.List<org.apache.mina.filter.firewall.Subnet> getBlockedSubnets()
Subnet
s for this listener blocks connections
getBlockedSubnets
in interface Listener
Subnet
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |