@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
.
SyntaxIdentifier
,
SyntaxRoutingService
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.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
SyntaxBranchingService() |
Modifier and Type | Method and Description |
---|---|
void |
addSyntaxIdentifier(SyntaxIdentifier ident)
Add a SyntaxIdentifier to the configured list.
|
protected void |
closeService() |
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
java.util.List<SyntaxIdentifier> |
getSyntaxIdentifiers()
Return the list of configured SyntaxIdentifers.
|
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
void |
setSyntaxIdentifiers(java.util.List<SyntaxIdentifier> l)
Sets the list of configured SyntaxIdentifers.
|
isBranching
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
s#doService(com.adaptris.core.AdaptrisMessage)
public void addSyntaxIdentifier(SyntaxIdentifier ident)
ident
- the SyntaxIdentifier.public java.util.List<SyntaxIdentifier> getSyntaxIdentifiers()
public void setSyntaxIdentifiers(java.util.List<SyntaxIdentifier> l)
l
- the list.protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public void prepare() throws CoreException
ComponentLifecycleExtension
CoreException