railo.runtime.net.ftp
Class FTPPoolImpl

java.lang.Object
  extended by railo.runtime.net.ftp.FTPPoolImpl
All Implemented Interfaces:
FTPPool

public final class FTPPoolImpl
extends Object
implements FTPPool

Pool of FTP Client


Constructor Summary
FTPPoolImpl()
           
 
Method Summary
 void clear()
          clears all connection from pool
 org.apache.commons.net.ftp.FTPClient get(FTPConnection conn)
          returns a FTPClient from the pool, if no matching exist, create a new one
 org.apache.commons.net.ftp.FTPClient remove(FTPConnection conn)
          removes a FTPConnection from pool andreturn it (disconnected)
 org.apache.commons.net.ftp.FTPClient remove(String name)
          removes a FTPConnection from pool andreturn it (disconnected)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPPoolImpl

public FTPPoolImpl()
Method Detail

get

public org.apache.commons.net.ftp.FTPClient get(FTPConnection conn)
                                         throws IOException,
                                                ApplicationException
Description copied from interface: FTPPool
returns a FTPClient from the pool, if no matching exist, create a new one

Specified by:
get in interface FTPPool
Returns:
Matching FTP Client
Throws:
IOException
ApplicationException

remove

public org.apache.commons.net.ftp.FTPClient remove(FTPConnection conn)
Description copied from interface: FTPPool
removes a FTPConnection from pool andreturn it (disconnected)

Specified by:
remove in interface FTPPool
Returns:
disconnetd Client

remove

public org.apache.commons.net.ftp.FTPClient remove(String name)
Description copied from interface: FTPPool
removes a FTPConnection from pool andreturn it (disconnected)

Specified by:
remove in interface FTPPool
Parameters:
name - Name of the connection to remove
Returns:
disconnetd Client

clear

public void clear()
Description copied from interface: FTPPool
clears all connection from pool

Specified by:
clear in interface FTPPool


Copyright © 2012 Railo