|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.BaseService toolbox.services.ftp.FTPService
public class FTPService
Convenience service implementation that can be used to develop services
that require interaction with FTP servers using the toolbox.ftp
package.
Constructor Summary | |
---|---|
protected |
FTPService()
Default constructor. |
Method Summary | |
---|---|
void |
create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
Create the service by obtaining a refrence to the FTPManager in the provided environment. |
void |
destroy()
Destroy this service by nulling the configuration properties. |
protected FTPGetClient |
getFTPGetClient(java.lang.String name)
Return the named FTPGetClient instance. |
protected FTPManager |
getFTPManager()
Returns the FTPManager for this service. |
protected FTPPutClient |
getFTPPutClient(java.lang.String name)
Return the named FTPPutClient instance. |
Methods inherited from class toolbox.services.BaseService |
---|
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FTPService()
Method Detail |
---|
public void create(java.lang.String name, java.lang.String confHome, ServiceEnvironment env, XMLProperties xmlProps) throws ServiceException
create
in interface Service
create
in class BaseService
name
- The name of this service.confHome
- The path to the configuration home directory.env
- The service environment for this service.xmlProps
- XML configuration properties.
ServiceException
- if this service cannot be created.protected FTPGetClient getFTPGetClient(java.lang.String name)
name
- String containing the name of the client.
protected FTPPutClient getFTPPutClient(java.lang.String name)
name
- String containing the name of the client.
protected FTPManager getFTPManager()
public void destroy()
BaseService
destroy
in interface Service
destroy
in class BaseService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |