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 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() |
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 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 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–2016 The Apache Software Foundation. All rights reserved.