public interface SyntaxIdentifier extends Condition
The contract for this interface is such that isThisSyntax(String)
should only return true, if and only if ALL
the configured patterns are matched within the document.
Since 3.10.0 this interface extends Condition
which means that it can be used as part of the conditional
services; if used in such a manner, then configuration is contextual, get/setDestination will be ignored (but may still have to
be configured due to validation
SyntaxRoutingService
,
Condition
Modifier and Type | Method and Description |
---|---|
default boolean |
evaluate(AdaptrisMessage msg)
Default implementation for
Condition |
java.lang.String |
getDestination()
Get the configured destination.
|
boolean |
isThisSyntax(java.lang.String message)
Determine if this SyntaxIdentifer considers the message to
match all the configured patterns.
|
void |
setDestination(java.lang.String dest)
Set the configured destination.
|
close, init, start, stop
void setDestination(java.lang.String dest)
This is the value that will be stored against the metadata key specified by SyntaxRoutingService.
dest
- the destination.java.lang.String getDestination()
boolean isThisSyntax(java.lang.String message) throws ServiceException
message
- the message to identify against.ServiceException
- if there was an error with the pattern.default boolean evaluate(AdaptrisMessage msg) throws CoreException
Condition
evaluate
in interface Condition
CoreException
isThisSyntax(String)
with the message content.