Class Base64DecodeMetadataService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.services.metadata.MetadataServiceImpl
com.adaptris.core.services.metadata.ReformatMetadata
com.adaptris.core.services.metadata.Base64MetadataService
com.adaptris.core.services.metadata.Base64DecodeMetadataService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,MetadataReformatter
,StateManagedComponent
@ComponentProfile(summary="Base64 decode an item of metadata",
tag="service,metadata,base64")
public class Base64DecodeMetadataService
extends Base64MetadataService
Base64 decods an item of metadata.
Each matching metadata key from ReformatMetadata.getMetadataKeyRegexp()
will be decoded, and the value overwitten with
the bytes after translating it into a String with the specified InterlokMessage.getContentEncoding()
In the adapter configuration file this class is aliased as metadata-base64-decode which is the preferred alternative to the fully qualified classname when building your configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.services.metadata.MetadataServiceImpl
MetadataServiceImpl.LogWrapper
-
Field Summary
Fields inherited from class com.adaptris.core.services.metadata.MetadataServiceImpl
DEBUG, ERROR, INFO, TRACE, WARN
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Methods inherited from class com.adaptris.core.services.metadata.Base64MetadataService
getStyle, setStyle, style, withStyle
Methods inherited from class com.adaptris.core.services.metadata.ReformatMetadata
doService, getMetadataKeyRegexp, setMetadataKeyRegexp
Methods inherited from class com.adaptris.core.services.metadata.MetadataServiceImpl
closeService, getMetadataLogger, initService, logMetadata, logMetadata, logMetadata, logMetadata, prepare, setMetadataLogger, withMetadataLogger
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.adaptris.core.services.metadata.MetadataReformatter
reformat
-
Constructor Details
-
Base64DecodeMetadataService
public Base64DecodeMetadataService() -
Base64DecodeMetadataService
-
-
Method Details
-
reformat
Description copied from interface:MetadataReformatter
Reformat a metadata value- Parameters:
s
- the string to reformatcharEncoding
- the charset of the message- Returns:
- the replacment string.
- Throws:
Exception
-