public class RegexpSyntaxIdentifier extends SyntaxIdentifierImpl
The regular expressions are the same as those in the java.util.regex
package.
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, getDestination, getPatterns, setDestination, setPatterns
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)