|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.listener.AbstractListener
public abstract class AbstractListener
Common base class for listener implementations
Constructor Summary | |
---|---|
AbstractListener()
|
Method Summary | |
---|---|
DataConnectionConfiguration |
getDataConnectionConfiguration()
Get configuration for data connections made within this listener |
int |
getPort()
Get the port on which this listener is waiting for requests. |
java.net.InetAddress |
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 |
void |
setDataConnectionConfiguration(DataConnectionConfiguration dataConnectionConfig)
Set configuration for data connections made within this listener |
void |
setImplicitSsl(boolean implicitSsl)
Should this listener be in SSL mode automatically or must the client explicitly request to use SSL |
void |
setPort(int port)
Set the port on which this listener will accept requests. |
void |
setServerAddress(java.net.InetAddress serverAddress)
Set the InetAddress used for binding the local socket. |
void |
setSslConfiguration(SslConfiguration ssl)
Set the SslConfiguration used for this listener |
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()
Method Detail |
---|
public boolean isImplicitSsl()
isImplicitSsl
in interface Listener
public void setImplicitSsl(boolean implicitSsl)
setImplicitSsl
in interface Listener
implicitSsl
- true is the listener should automatically be in SSL mode, false otherwisepublic int getPort()
getPort
in interface Listener
public void setPort(int port)
setPort
in interface Listener
port
- The port to use.public java.net.InetAddress 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 void setServerAddress(java.net.InetAddress serverAddress)
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfaces
setServerAddress
in interface Listener
serverAddress
- The local socket InetAddress
public SslConfiguration getSslConfiguration()
SslConfiguration
used for this listener
getSslConfiguration
in interface Listener
SslConfiguration
public void setSslConfiguration(SslConfiguration ssl)
SslConfiguration
used for this listener
setSslConfiguration
in interface Listener
ssl
- The SslConfiguration
public DataConnectionConfiguration getDataConnectionConfiguration()
getDataConnectionConfiguration
in interface Listener
public void setDataConnectionConfiguration(DataConnectionConfiguration dataConnectionConfig)
setDataConnectionConfiguration
in interface Listener
dataConnectionConfig
- The data connection configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |