|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.DefaultDataConnectionConfiguration
public class DefaultDataConnectionConfiguration
Data connection configuration.
Nested Class Summary | |
---|---|
static class |
DefaultDataConnectionConfiguration.Active
|
static class |
DefaultDataConnectionConfiguration.Passive
|
Constructor Summary | |
---|---|
DefaultDataConnectionConfiguration()
|
Method Summary | |
---|---|
java.net.InetAddress |
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. |
java.net.InetAddress |
getPassiveAddress()
Get passive host. |
java.net.InetAddress |
getPassiveExernalAddress()
Get external passive host. |
java.lang.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? |
void |
releasePassivePort(int port)
Release data port |
int |
requestPassivePort()
Get passive data port. |
void |
setActive(DefaultDataConnectionConfiguration.Active active)
|
void |
setIdleTime(int idleTime)
|
void |
setPassive(DefaultDataConnectionConfiguration.Passive passive)
|
void |
setPassiveAddress(java.net.InetAddress address)
Set the passive host |
void |
setPassiveExernalAddress(java.net.InetAddress address)
Set the passive external host |
void |
setPassivePorts(java.lang.String passivePorts)
Set the passive ports allowed for this data connection. |
void |
setSslConfiguration(SslConfiguration ssl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDataConnectionConfiguration()
Method Detail |
---|
public int getIdleTime()
getIdleTime
in interface DataConnectionConfiguration
public void setIdleTime(int idleTime)
public void setActive(DefaultDataConnectionConfiguration.Active active)
public void setPassive(DefaultDataConnectionConfiguration.Passive passive)
public void setSslConfiguration(SslConfiguration ssl)
public boolean isActiveEnabled()
isActiveEnabled
in interface DataConnectionConfiguration
public boolean isActiveIpCheck()
isActiveIpCheck
in interface DataConnectionConfiguration
public java.net.InetAddress getActiveLocalAddress()
getActiveLocalAddress
in interface DataConnectionConfiguration
public int getActiveLocalPort()
getActiveLocalPort
in interface DataConnectionConfiguration
public java.net.InetAddress getPassiveAddress()
getPassiveAddress
in interface DataConnectionConfiguration
public void setPassiveAddress(java.net.InetAddress address)
address
- The passive hostpublic java.net.InetAddress getPassiveExernalAddress()
getPassiveExernalAddress
in interface DataConnectionConfiguration
public void setPassiveExernalAddress(java.net.InetAddress address)
address
- The passive external hostpublic int requestPassivePort()
requestPassivePort
in interface DataConnectionConfiguration
public java.lang.String getPassivePorts()
getPassivePorts
in interface DataConnectionConfiguration
public void setPassivePorts(java.lang.String passivePorts)
setPassivePorts
in interface DataConnectionConfiguration
passivePorts
- A string consisting of port numbers
separated by commas. It can also include ranged. For example:
22,23,24
22-24,28
for details on the allowed format.
If set to null, the passive port with be assigned from any available port
public void releasePassivePort(int port)
releasePassivePort
in interface DataConnectionConfiguration
public SslConfiguration getSslConfiguration()
getSslConfiguration
in interface DataConnectionConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |