Package com.adaptris.filesystem
Class DeleteFileService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.filesystem.DeleteFileService
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Will delete a file", tag="FS, FileSystem") public class DeleteFileService extends ServiceImpIn the adapter configuration file this class is aliased as delete-file-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 DeleteFileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage msg)java.lang.BooleangetDeleteEmptyParent()DataInputParameter<java.lang.String>getPath()protected voidinitService()voidprepare()voidsetDeleteEmptyParent(java.lang.Boolean deleteEmptyParent)voidsetPath(DataInputParameter<java.lang.String> path)DeleteFileServicewithPath(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)
-
getDeleteEmptyParent
public java.lang.Boolean getDeleteEmptyParent()
-
setDeleteEmptyParent
public void setDeleteEmptyParent(java.lang.Boolean deleteEmptyParent)
-
withPath
public DeleteFileService 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
-
-