public class ConsumeDestinationFromMetadata extends java.lang.Object implements ConsumeDestinationGenerator
ConsumeDestinationGenerator
that works with metadata.In the adapter configuration file this class is aliased as consume-destination-from-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ConsumeDestinationFromMetadata() |
Modifier and Type | Method and Description |
---|---|
ConsumeDestination |
generate(AdaptrisMessage msg) |
java.lang.String |
getDefaultDestination() |
java.lang.String |
getDefaultFilterExpression() |
java.lang.String |
getDestinationMetadataKey() |
java.lang.String |
getFilterMetadataKey() |
void |
setDefaultDestination(java.lang.String dest)
Set the default destination.
|
void |
setDefaultFilterExpression(java.lang.String filter)
Set the default filter expression.
|
void |
setDestinationMetadataKey(java.lang.String key)
Set the metadata key that will contain the destination.
|
void |
setFilterMetadataKey(java.lang.String key)
Set the metadata key that will contain the filter expression.
|
public java.lang.String getDefaultDestination()
public void setDefaultDestination(java.lang.String dest)
dest
- the destination.public java.lang.String getDefaultFilterExpression()
public void setDefaultFilterExpression(java.lang.String filter)
filter
- the default filter expression.public java.lang.String getFilterMetadataKey()
public void setFilterMetadataKey(java.lang.String key)
key
- public java.lang.String getDestinationMetadataKey()
public void setDestinationMetadataKey(java.lang.String key)
key
- the destinationMetadataKey to setpublic ConsumeDestination generate(AdaptrisMessage msg)
generate
in interface ConsumeDestinationGenerator