public class MetadataReplacementSource extends AbstractReplacementSource
ReplacementSource
implementation which returns the metadata value when the replacement value is treated as a metadata
key.
Used with FindAndReplaceService
to replace text in the message.
In the adapter configuration file this class is aliased as metadata-replacement-source which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MetadataReplacementSource() |
MetadataReplacementSource(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
obtainValue(AdaptrisMessage msg)
Obtains a replacement value for
FindAndReplaceService based on the passed configured value. |
getValue, setValue
public MetadataReplacementSource()
public MetadataReplacementSource(java.lang.String value)
public java.lang.String obtainValue(AdaptrisMessage msg)
ReplacementSource
Obtains a replacement value for FindAndReplaceService
based on the passed configured value.
msg
- the AdaptrisMessage
being processed