|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.listener.ListenerFactory
public class ListenerFactory
Factory for listeners. Listeners themselves are immutable and must be created using this factory.
Constructor Summary | |
---|---|
ListenerFactory()
Default constructor |
|
ListenerFactory(Listener listener)
Copy constructor, will copy properties from the provided listener. |
Method Summary | |
---|---|
Listener |
createListener()
Create a listener based on the settings of this factory. |
List<InetAddress> |
getBlockedAddresses()
Deprecated. Replaced by the IpFilter. Retrieves the InetAddress for which listeners created by this factory blocks
connections |
List<org.apache.mina.filter.firewall.Subnet> |
getBlockedSubnets()
Deprecated. Replaced by the IpFilter. Retrives the Subnet s for which listeners created by this factory blocks connections |
DataConnectionConfiguration |
getDataConnectionConfiguration()
Get configuration for data connections made within listeners created by this factory |
int |
getIdleTimeout()
Get the number of seconds during which no network activity is allowed before a session is closed due to inactivity. |
IpFilter |
getIpFilter()
Returns the currently configured IP filter, if any. |
int |
getPort()
Get the port on which listeners created by this factory is waiting for requests. |
String |
getServerAddress()
Get the InetAddress used for binding the local socket. |
SslConfiguration |
getSslConfiguration()
Get the SslConfiguration used for listeners created by this factory |
boolean |
isImplicitSsl()
Is listeners created by this factory in SSL mode automatically or must the client explicitly request to use SSL |
void |
setBlockedAddresses(List<InetAddress> blockedAddresses)
Deprecated. Replaced by the IpFilter. Sets the InetAddress that listeners created by this factory will block from
connecting |
void |
setBlockedSubnets(List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Deprecated. Replaced by the IpFilter. Sets the Subnet s that listeners created by this factory will block from connecting |
void |
setDataConnectionConfiguration(DataConnectionConfiguration dataConnectionConfig)
Set configuration for data connections made within listeners created by this factory |
void |
setIdleTimeout(int idleTimeout)
Set the number of seconds during which no network activity is allowed before a session is closed due to inactivity. |
void |
setImplicitSsl(boolean implicitSsl)
Should listeners created by this factory be in SSL mode automatically or must the client explicitly request to use SSL |
void |
setIpFilter(IpFilter ipFilter)
Sets the IP filter to the given filter. |
void |
setPort(int port)
Set the port on which listeners created by this factory will accept requests. |
void |
setServerAddress(String serverAddress)
Set the InetAddress used for binding the local socket. |
void |
setSslConfiguration(SslConfiguration ssl)
Set the SslConfiguration to use by listeners created by this factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerFactory()
public ListenerFactory(Listener listener)
listener
- The listener which properties will be used for this factoryMethod Detail |
---|
public Listener createListener()
public boolean isImplicitSsl()
public void setImplicitSsl(boolean implicitSsl)
implicitSsl
- true is listeners created by this factory should automatically be in SSL mode,
false otherwisepublic int getPort()
public void setPort(int port)
port
- The port to use.public String getServerAddress()
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfaces
InetAddress
, if setpublic void setServerAddress(String serverAddress)
InetAddress
used for binding the local socket. Defaults
to null, that is, the server binds to all available network interfaces
serverAddress
- The local socket InetAddress
public SslConfiguration getSslConfiguration()
SslConfiguration
used for listeners created by this factory
SslConfiguration
public void setSslConfiguration(SslConfiguration ssl)
SslConfiguration
to use by listeners created by this factory
ssl
- The SslConfiguration
public DataConnectionConfiguration getDataConnectionConfiguration()
public void setDataConnectionConfiguration(DataConnectionConfiguration dataConnectionConfig)
dataConnectionConfig
- The data connection configurationpublic int getIdleTimeout()
public void setIdleTimeout(int idleTimeout)
idleTimeout
- The idle timeout in seconds@Deprecated public List<InetAddress> getBlockedAddresses()
InetAddress
for which listeners created by this factory blocks
connections
InetAddress
es@Deprecated public void setBlockedAddresses(List<InetAddress> blockedAddresses)
InetAddress
that listeners created by this factory will block from
connecting
blockedAddresses
- The list of InetAddress
es@Deprecated public List<org.apache.mina.filter.firewall.Subnet> getBlockedSubnets()
Subnet
s for which listeners created by this factory blocks connections
Subnet
s@Deprecated public void setBlockedSubnets(List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Subnet
s that listeners created by this factory will block from connecting
blockedSubnets
- The list of Subnet
sblockedAddresses
- public IpFilter getIpFilter()
null
, if no IP filter is configured.public void setIpFilter(IpFilter ipFilter)
ipFilter
- the IP filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |