public class PayloadValueTranslator extends ValueTranslatorImp
This implementation of ValueTranslator
will pull the string payload value from the
AdaptrisMessage
to be used as a Jmx operation parameter. Conversely we can also take a
string result from a Jmx operation call and overwrite the payload with the new value.
In the adapter configuration file this class is aliased as jmx-payload-value-translator which is the preferred alternative to the fully qualified classname when building your configuration.
DEFAULT_PARAMETER_TYPE
Constructor and Description |
---|
PayloadValueTranslator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(AdaptrisMessage message)
Returns the object instance used as a parameter for a JMX operation call.
|
void |
setValue(AdaptrisMessage message,
java.lang.Object object)
Will set the given object value back into the AdaptrisMessage.
|
getType, setType
public java.lang.Object getValue(AdaptrisMessage message)
ValueTranslator
public void setValue(AdaptrisMessage message, java.lang.Object object)
ValueTranslator