public class DataConnectionConfigurationFactory extends Object
Constructor and Description |
---|
DataConnectionConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
DataConnectionConfiguration |
createDataConnectionConfiguration()
Create a
DataConnectionConfiguration instance based on the
configuration on this factory |
String |
getActiveLocalAddress()
Get the local address for active mode data transfer.
|
int |
getActiveLocalPort()
Get the active local port number.
|
int |
getIdleTime()
Get the maximum idle time in seconds.
|
String |
getPassiveAddress()
Get passive host.
|
String |
getPassiveExternalAddress()
Get the passive address that will be returned to clients on the PASV
command.
|
String |
getPassivePorts()
Retrieve the passive ports configured for this data connection
|
SslConfiguration |
getSslConfiguration()
Get the
SslConfiguration to be used by data connections |
boolean |
isActiveEnabled()
Is PORT enabled?
|
boolean |
isActiveIpCheck()
Check the PORT IP?
|
boolean |
isImplicitSsl() |
void |
releasePassivePort(int port)
Release data port
|
int |
requestPassivePort()
Get passive data port.
|
void |
setActiveEnabled(boolean activeEnabled)
Set if active data connections are enabled
|
void |
setActiveIpCheck(boolean activeIpCheck)
Check the PORT IP with the client IP?
|
void |
setActiveLocalAddress(String activeLocalAddress)
Set the active data connection local host.
|
void |
setActiveLocalPort(int activeLocalPort)
Set the active data connection local port.
|
void |
setIdleTime(int idleTime)
Set the maximum idle time in seconds.
|
void |
setImplicitSsl(boolean implicitSsl)
Set whether ssl is required for the data connection
|
void |
setPassiveAddress(String passiveAddress)
Set the passive server address.
|
void |
setPassiveExternalAddress(String passiveExternalAddress)
Set the passive address that will be returned to clients on the PASV
command.
|
void |
setPassivePorts(String passivePorts)
Set the passive ports to be used for data connections.
|
void |
setSslConfiguration(SslConfiguration ssl)
Set the
SslConfiguration to be used by data connections |
public DataConnectionConfiguration createDataConnectionConfiguration()
DataConnectionConfiguration
instance based on the
configuration on this factoryDataConnectionConfiguration
instancepublic int getIdleTime()
public void setIdleTime(int idleTime)
idleTime
- The maximum idle timepublic boolean isActiveEnabled()
public void setActiveEnabled(boolean activeEnabled)
activeEnabled
- true if active data connections are enabledpublic boolean isActiveIpCheck()
public void setActiveIpCheck(boolean activeIpCheck)
activeIpCheck
- true if the PORT IP should be verifiedpublic String getActiveLocalAddress()
public void setActiveLocalAddress(String activeLocalAddress)
activeLocalAddress
- The address for active connectionspublic int getActiveLocalPort()
public void setActiveLocalPort(int activeLocalPort)
activeLocalPort
- The active data connection local portpublic String getPassiveAddress()
public void setPassiveAddress(String passiveAddress)
passiveAddress
- The address used for passive connectionspublic String getPassiveExternalAddress()
public void setPassiveExternalAddress(String passiveExternalAddress)
passiveExternalAddress
- The passive address to be returned to clientspublic int requestPassivePort()
public String getPassivePorts()
public void setPassivePorts(String passivePorts)
passivePorts
- The passive ports stringpublic void releasePassivePort(int port)
port
- The port to releasepublic SslConfiguration getSslConfiguration()
SslConfiguration
to be used by data connectionsSslConfiguration
used by data connectionspublic void setSslConfiguration(SslConfiguration ssl)
SslConfiguration
to be used by data connectionsssl
- The SslConfiguration
public boolean isImplicitSsl()
public void setImplicitSsl(boolean implicitSsl)
sslMandatory
- True if ssl is mandatory for the data connectionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.