public abstract class ReformatMetadata extends MetadataServiceImpl implements MetadataReformatter
Implementation of Service
that reformats matching metadata.
Each matching metadata key from getMetadataKeyRegexp()
will be taken and passed to concrete subclasses
to modify.
MetadataServiceImpl.LogWrapper
DEBUG, ERROR, INFO, TRACE, WARN
log
Constructor and Description |
---|
ReformatMetadata() |
ReformatMetadata(java.lang.String regexp) |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg)
Adds the configured metadata to the message.
|
java.lang.String |
getMetadataKeyRegexp() |
void |
setMetadataKeyRegexp(java.lang.String s)
Set the regular expression to match against.
|
closeService, getMetadataLogger, initService, logMetadata, logMetadata, logMetadata, logMetadata, prepare, setMetadataLogger, withMetadataLogger
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reformat, reformat
public ReformatMetadata()
public ReformatMetadata(java.lang.String regexp)
public void doService(AdaptrisMessage msg) throws ServiceException
Adds the configured metadata to the message.
doService
in interface Service
msg
- the message to processServiceException
- wrapping any underlying Exception
spublic java.lang.String getMetadataKeyRegexp()
public void setMetadataKeyRegexp(java.lang.String s)
s
- the metadataKeyRegexp to set