Package com.adaptris.core.services.path
Class RegexpService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.path.RegexpService
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Extract data via a regular expression and store it", tag="service,xml") public class RegexpService extends ServiceImpThis service allows you to configure an regular expression which will be executed on source data, the result of which can be saved to multiple locations.
- Since:
- 3.2.1
In the adapter configuration file this class is aliased as regexp-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 RegexpService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage msg)Apply the service to the message.java.util.List<Execution>getExecutions()DataInputParameter<java.lang.String>getRegexpSource()protected voidinitService()voidprepare()Prepare for initialisation.voidsetExecutions(java.util.List<Execution> list)voidsetRegexpSource(DataInputParameter<java.lang.String> src)-
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
Description copied from interface:ServiceApply the service to the message.
- Parameters:
msg- theAdaptrisMessageto process- Throws:
ServiceException- wrapping any underlyingExceptions
-
prepare
public void prepare() throws CoreExceptionDescription copied from interface:ComponentLifecycleExtensionPrepare for initialisation.- Throws:
CoreException
-
initService
protected void initService() throws CoreException- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()
- Specified by:
closeServicein classServiceImp
-
getRegexpSource
public DataInputParameter<java.lang.String> getRegexpSource()
-
setRegexpSource
public void setRegexpSource(DataInputParameter<java.lang.String> src)
-
getExecutions
public java.util.List<Execution> getExecutions()
-
setExecutions
public void setExecutions(java.util.List<Execution> list)
-
-