|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.ftp.FTPManagerCommonsImpl
public class FTPManagerCommonsImpl
This implementation of the FTPManager interface employs the Apache Commons Net FTP package.
Constructor Summary | |
---|---|
FTPManagerCommonsImpl()
Default constructor. |
Method Summary | |
---|---|
void |
destroy()
Destroy this manager. |
FTPGetClient |
getFTPGetClient(java.lang.String name)
Return a reference to a named FTPGetClient |
FTPPutClient |
getFTPPutClient(java.lang.String name)
Return a reference to a named FTPPutClient |
java.lang.String |
getName()
Return the name of this manager. |
void |
init(java.lang.String name,
XMLProperties xmlProps)
Initialise the manager with XML configuration containing the FTP server and client configuration parameters. |
void |
setName(java.lang.String name)
Set the name of this manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FTPManagerCommonsImpl()
Method Detail |
---|
public void init(java.lang.String name, XMLProperties xmlProps) throws FTPException
init
in interface FTPManager
name
- Sting containing the name of this manager.xmlProps
- XML configuration.
FTPException
- if the manager cannot be initialised.public void setName(java.lang.String name)
setName
in interface FTPManager
name
- String containing manager name.public java.lang.String getName()
getName
in interface FTPManager
public FTPGetClient getFTPGetClient(java.lang.String name)
getFTPGetClient
in interface FTPManager
name
- String containing the name of the client to return.
public FTPPutClient getFTPPutClient(java.lang.String name)
getFTPPutClient
in interface FTPManager
name
- String containing the name of the client to return.
public void destroy() throws FTPException
destroy
in interface FTPManager
FTPException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |