@ComponentProfile(summary="Turn a metadata value into a hex string using the specified character encoding", tag="service,metadata") public class StringToHexService extends HexToStringService
HexToStringService
In the adapter configuration file this class is aliased as string-to-hex-metadata-service which is the preferred alternative to the fully qualified classname when building your configuration.
MetadataServiceImpl.LogWrapper
UTF_8
DEBUG, ERROR, INFO, TRACE, WARN
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
StringToHexService() |
StringToHexService(java.lang.String regex) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
reformat(java.lang.String s,
java.lang.String msgCharset)
Reformat a metadata value
|
getCharacterEncoding, getCharset, setCharset
doService, getMetadataKeyRegexp, setMetadataKeyRegexp
closeService, getMetadataLogger, initService, logMetadata, logMetadata, logMetadata, logMetadata, prepare, setMetadataLogger, withMetadataLogger
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reformat
public StringToHexService()
public StringToHexService(java.lang.String regex)
public java.lang.String reformat(java.lang.String s, java.lang.String msgCharset) throws java.lang.Exception
MetadataReformatter
reformat
in interface MetadataReformatter
reformat
in class HexToStringService
s
- the string to reformatmsgCharset
- the charset of the messagejava.lang.Exception