@ComponentProfile(summary="Changes matching metadata single quote into escaped single quote", tag="service,metadata", since="3.10.1") public class MetadataValueEscapeSingleQuote extends ReformatMetadata
Each matching metadata key from ReformatMetadata.getMetadataKeyRegexp()
will be changed to escaped single quote
In the adapter configuration file this class is aliased as metadata-value-escape-single-quote which is the preferred alternative to the fully qualified classname when building your configuration.
MetadataServiceImpl.LogWrapper
DEBUG, ERROR, INFO, TRACE, WARN
log
Constructor and Description |
---|
MetadataValueEscapeSingleQuote() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
reformat(java.lang.String toChange,
java.lang.String msgCharset)
Reformat a metadata value
|
doService, getMetadataKeyRegexp, setMetadataKeyRegexp
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
public java.lang.String reformat(java.lang.String toChange, java.lang.String msgCharset)
MetadataReformatter
toChange
- the string to reformatmsgCharset
- the charset of the message