public class ConfiguredReplacementSource extends AbstractReplacementSource
ReplacementSource
implementation which returns the passed in value.
Used with FindAndReplaceService
to replace text in the message.
In the adapter configuration file this class is aliased as configured-replacement-source which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ConfiguredReplacementSource() |
ConfiguredReplacementSource(java.lang.String val) |
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 ConfiguredReplacementSource()
public ConfiguredReplacementSource(java.lang.String val)
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