@ComponentProfile(summary="Tests a metadata key against a configured operator.", tag="condition,metadata") public class ConditionMetadata extends ConditionWithOperator
This Condition
targets message metadata. All you need do is choose an Operator
to
apply the conditional test.
In the adapter configuration file this class is aliased as metadata which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
ConditionMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(AdaptrisMessage message) |
java.lang.String |
getMetadataKey() |
void |
setMetadataKey(java.lang.String metadataKey) |
getOperator, operator, setOperator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, init, start, stop
public boolean evaluate(AdaptrisMessage message) throws CoreException
CoreException
public java.lang.String getMetadataKey()
public void setMetadataKey(java.lang.String metadataKey)