public class RegexpSyntaxIdentifier extends SyntaxIdentifierImpl
The regular expressions are the same as those in the java.util.regex
package.
Since 3.10.0 this class implements 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
Pattern
In the adapter configuration file this class is aliased as routing-regexp-syntax-identifier which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
RegexpSyntaxIdentifier() |
RegexpSyntaxIdentifier(java.util.List<java.lang.String> patterns,
java.lang.String dest) |
Modifier and Type | Method and Description |
---|---|
boolean |
isThisSyntax(java.lang.String message)
Determine if this SyntaxIdentifer considers the message to
match all the configured patterns.
|
addPattern, getPatterns, setPatterns
getDestination, setDestination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluate
close, init, start, stop
public RegexpSyntaxIdentifier()
public RegexpSyntaxIdentifier(java.util.List<java.lang.String> patterns, java.lang.String dest)
public boolean isThisSyntax(java.lang.String message) throws ServiceException
SyntaxIdentifier
message
- the message to identify against.ServiceException
- if there was an error with the pattern.SyntaxIdentifier.isThisSyntax(java.lang.String)