Package com.adaptris.filesystem
Class DeleteDirectoryService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.filesystem.DeleteDirectoryService
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Will delete directory and its contents.", tag="FS, FileSystem") public class DeleteDirectoryService extends ServiceImpIn the adapter configuration file this class is aliased as delete-directory-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description DeleteDirectoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage msg)DataInputParameter<java.lang.String>getPath()protected voidinitService()voidprepare()voidsetPath(DataInputParameter<java.lang.String> path)DeleteDirectoryServicewithPath(DataInputParameter<java.lang.String> path)-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
- Throws:
ServiceException
-
getPath
public DataInputParameter<java.lang.String> getPath()
-
setPath
public void setPath(DataInputParameter<java.lang.String> path)
-
withPath
public DeleteDirectoryService withPath(DataInputParameter<java.lang.String> path)
-
initService
protected void initService() throws CoreException- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()
- Specified by:
closeServicein classServiceImp
-
prepare
public void prepare() throws CoreException- Throws:
CoreException
-
-