org.apache.ftpserver.impl
Class PassivePorts

java.lang.Object
  extended by org.apache.ftpserver.impl.PassivePorts

public class PassivePorts
extends Object

Internal class, do not use directly. Provides support for parsing a passive ports string as well as keeping track of reserved passive ports.

Author:
Apache MINA Project

Constructor Summary
PassivePorts(Set<Integer> passivePorts, boolean checkIfBound)
           
PassivePorts(String passivePorts, boolean checkIfBound)
           
 
Method Summary
 void releasePort(int port)
           
 int reserveNextPort()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PassivePorts

public PassivePorts(String passivePorts,
                    boolean checkIfBound)

PassivePorts

public PassivePorts(Set<Integer> passivePorts,
                    boolean checkIfBound)
Method Detail

reserveNextPort

public int reserveNextPort()

releasePort

public void releasePort(int port)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.