Class SyntaxBranchingService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.BranchingServiceImp
com.adaptris.core.services.routing.SyntaxBranchingService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Perform a branch based on the derived syntax of the message",
tag="service,branching",
branchSelector=true)
public class SyntaxBranchingService
extends BranchingServiceImp
Branching Service which determines the next Service to apply according to SyntaxIdentifier
s, as used by
SyntaxRoutingService
.
- See Also:
In the adapter configuration file this class is aliased as syntax-branching-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a SyntaxIdentifier to the configured list.protected void
void
doService
(AdaptrisMessage msg) Apply the service to the message.Return the list of configured SyntaxIdentifers.protected void
void
prepare()
Prepare for initialisation.void
Sets the list of configured SyntaxIdentifers.Methods inherited from class com.adaptris.core.BranchingServiceImp
isBranching
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
SyntaxBranchingService
public SyntaxBranchingService()
-
-
Method Details
-
doService
Description copied from interface:Service
Apply the service to the message.
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s- See Also:
-
addSyntaxIdentifier
Add a SyntaxIdentifier to the configured list.- Parameters:
ident
- the SyntaxIdentifier.
-
getSyntaxIdentifiers
Return the list of configured SyntaxIdentifers.- Returns:
- the list.
-
setSyntaxIdentifiers
Sets the list of configured SyntaxIdentifers.- Parameters:
l
- the list.
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-
prepare
Description copied from interface:ComponentLifecycleExtension
Prepare for initialisation.- Throws:
CoreException
-