Class ConditionMetadata
- java.lang.Object
-
- com.adaptris.core.services.conditional.conditions.ConditionImpl
-
- com.adaptris.core.services.conditional.conditions.ConditionWithOperator
-
- com.adaptris.core.services.conditional.conditions.ConditionMetadata
-
- All Implemented Interfaces:
ComponentLifecycle
,Condition
@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 anOperator
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.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.services.conditional.conditions.ConditionImpl
log
-
-
Constructor Summary
Constructors Constructor Description ConditionMetadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(AdaptrisMessage message)
java.lang.String
getMetadataKey()
void
setMetadataKey(java.lang.String metadataKey)
-
Methods inherited from class com.adaptris.core.services.conditional.conditions.ConditionWithOperator
getOperator, operator, setOperator
-
Methods inherited from class com.adaptris.core.services.conditional.conditions.ConditionImpl
getAdditionalLogging, logCondition, setAdditionalLogging
-
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.ComponentLifecycle
close, init, start, stop
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(AdaptrisMessage message) throws CoreException
- Throws:
CoreException
-
getMetadataKey
public java.lang.String getMetadataKey()
-
setMetadataKey
public void setMetadataKey(java.lang.String metadataKey)
-
-