public class DefaultDataConnectionConfiguration extends Object implements DataConnectionConfiguration
| Constructor and Description |
|---|
DefaultDataConnectionConfiguration(int idleTime,
SslConfiguration ssl,
boolean activeEnabled,
boolean activeIpCheck,
String activeLocalAddress,
int activeLocalPort,
String passiveAddress,
PassivePorts passivePorts,
String passiveExternalAddress,
boolean passiveIpCheck,
boolean implicitSsl)
Internal constructor, do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getPassiveExernalAddress()
Get external passive host.
|
String |
getPassivePorts()
Retrive the passive ports configured for this data connection
|
SslConfiguration |
getSslConfiguration()
Get SSL component.
|
boolean |
isActiveEnabled()
Is PORT enabled?
|
boolean |
isActiveIpCheck()
Check the PORT IP?
|
boolean |
isImplicitSsl() |
boolean |
isPassiveIpCheck()
Tells whether or not IP address check is performed when accepting a
passive data connection.
|
void |
releasePassivePort(int port)
Release data port
|
int |
requestPassivePort()
Get passive data port.
|
public DefaultDataConnectionConfiguration(int idleTime,
SslConfiguration ssl,
boolean activeEnabled,
boolean activeIpCheck,
String activeLocalAddress,
int activeLocalPort,
String passiveAddress,
PassivePorts passivePorts,
String passiveExternalAddress,
boolean passiveIpCheck,
boolean implicitSsl)
DataConnectionConfigurationFactory instead.public int getIdleTime()
getIdleTime in interface DataConnectionConfigurationpublic boolean isActiveEnabled()
isActiveEnabled in interface DataConnectionConfigurationpublic boolean isActiveIpCheck()
isActiveIpCheck in interface DataConnectionConfigurationpublic String getActiveLocalAddress()
getActiveLocalAddress in interface DataConnectionConfigurationInetAddress for active connectionspublic int getActiveLocalPort()
getActiveLocalPort in interface DataConnectionConfigurationpublic String getPassiveAddress()
getPassiveAddress in interface DataConnectionConfigurationInetAddress used for passive connectionspublic String getPassiveExernalAddress()
getPassiveExernalAddress in interface DataConnectionConfigurationpublic boolean isPassiveIpCheck()
DataConnectionConfigurationisPassiveIpCheck in interface DataConnectionConfigurationtrue, if the IP address checking is enabled;
false, otherwise. A value of true means
that site to site transfers are disabled. In other words, a
passive data connection MUST be made from the same IP address
that issued the PASV command.public int requestPassivePort()
requestPassivePort in interface DataConnectionConfigurationpublic String getPassivePorts()
getPassivePorts in interface DataConnectionConfigurationpublic void releasePassivePort(int port)
releasePassivePort in interface DataConnectionConfigurationport - The port to be releasedpublic SslConfiguration getSslConfiguration()
getSslConfiguration in interface DataConnectionConfigurationSslConfigurationpublic boolean isImplicitSsl()
isImplicitSsl in interface DataConnectionConfigurationDataConnectionConfiguration.isImplicitSsl()Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.