Class RegexpSyntaxIdentifier
java.lang.Object
com.adaptris.core.services.routing.SyntaxIdentifierBase
com.adaptris.core.services.routing.SyntaxIdentifierImpl
com.adaptris.core.services.routing.RegexpSyntaxIdentifier
- All Implemented Interfaces:
ComponentLifecycle
,Condition
,SyntaxIdentifier
Match against a number of configured regular expressions.
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
- See Also:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isThisSyntax
(String message) Determine if this SyntaxIdentifer considers the message to match all the configured patterns.Methods inherited from class com.adaptris.core.services.routing.SyntaxIdentifierImpl
addPattern, getPatterns, setPatterns
Methods inherited from class com.adaptris.core.services.routing.SyntaxIdentifierBase
getDestination, setDestination
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
Methods inherited from interface com.adaptris.core.services.routing.SyntaxIdentifier
evaluate
-
Constructor Details
-
RegexpSyntaxIdentifier
public RegexpSyntaxIdentifier() -
RegexpSyntaxIdentifier
-
-
Method Details
-
isThisSyntax
Description copied from interface:SyntaxIdentifier
Determine if this SyntaxIdentifer considers the message to match all the configured patterns.- Parameters:
message
- the message to identify against.- Returns:
- true if it matches.
- Throws:
ServiceException
- if there was an error with the pattern.- See Also:
-