|
||||||||||
| 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. |
java.util.List<java.net.InetAddress> |
getBlockedAddresses()
Deprecated. Replaced by the IpFilter. Retrieves the InetAddress for which listeners created by this factory blocks
connections |
java.util.List<org.apache.mina.filter.firewall.Subnet> |
getBlockedSubnets()
Deprecated. Replaced by the IpFilter. Retrives the Subnets 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. |
java.lang.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(java.util.List<java.net.InetAddress> blockedAddresses)
Deprecated. Replaced by the IpFilter. Sets the InetAddress that listeners created by this factory will block from
connecting |
void |
setBlockedSubnets(java.util.List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Deprecated. Replaced by the IpFilter. Sets the Subnets 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(java.lang.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 factory| Method 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 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 setpublic void setServerAddress(java.lang.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 InetAddresspublic SslConfiguration getSslConfiguration()
SslConfiguration used for listeners created by this factory
SslConfigurationpublic void setSslConfiguration(SslConfiguration ssl)
SslConfiguration to use by listeners created by this factory
ssl - The SslConfigurationpublic 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 java.util.List<java.net.InetAddress> getBlockedAddresses()
InetAddress for which listeners created by this factory blocks
connections
InetAddresses@Deprecated public void setBlockedAddresses(java.util.List<java.net.InetAddress> blockedAddresses)
InetAddress that listeners created by this factory will block from
connecting
blockedAddresses - The list of InetAddresses@Deprecated public java.util.List<org.apache.mina.filter.firewall.Subnet> getBlockedSubnets()
Subnets for which listeners created by this factory blocks connections
Subnets@Deprecated public void setBlockedSubnets(java.util.List<org.apache.mina.filter.firewall.Subnet> blockedSubnets)
Subnets that listeners created by this factory will block from connecting
blockedSubnets - The list of SubnetsblockedAddresses - 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 | |||||||||