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 DataConnectionConfiguration
public boolean isActiveEnabled()
isActiveEnabled
in interface DataConnectionConfiguration
public boolean isActiveIpCheck()
isActiveIpCheck
in interface DataConnectionConfiguration
public String getActiveLocalAddress()
getActiveLocalAddress
in interface DataConnectionConfiguration
InetAddress
for active connectionspublic int getActiveLocalPort()
getActiveLocalPort
in interface DataConnectionConfiguration
public String getPassiveAddress()
getPassiveAddress
in interface DataConnectionConfiguration
InetAddress
used for passive connectionspublic String getPassiveExernalAddress()
getPassiveExernalAddress
in interface DataConnectionConfiguration
public boolean isPassiveIpCheck()
DataConnectionConfiguration
isPassiveIpCheck
in interface DataConnectionConfiguration
true
, 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 DataConnectionConfiguration
public String getPassivePorts()
getPassivePorts
in interface DataConnectionConfiguration
public void releasePassivePort(int port)
releasePassivePort
in interface DataConnectionConfiguration
port
- The port to be releasedpublic SslConfiguration getSslConfiguration()
getSslConfiguration
in interface DataConnectionConfiguration
SslConfiguration
public boolean isImplicitSsl()
isImplicitSsl
in interface DataConnectionConfiguration
DataConnectionConfiguration.isImplicitSsl()
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.