@ComponentProfile(summary="Perform a branch based on whether one or more metadata keys exist or not", tag="service,branching", branchSelector=true) public class MetadataExistsBranchingService extends MetadataBranchingServiceImp
Service
which sets the ID of the Service
to apply next based on whether any value is present against
any configured metadata key.
In the adapter configuration file this class is aliased as metadata-exists-branching-service which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
MetadataExistsBranchingService() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
java.lang.String |
getMetadataExistsServiceId()
Returns the
ServiceId to use next if metadata (other than
"") exists against any of the configured keys. |
void |
setMetadataExistsServiceId(java.lang.String s)
Sets the
ServiceId to use next if metadata (other than
"") exists against any of the configured keys. |
addMetadataKey, closeService, getDefaultServiceId, getMetadataKeys, initService, prepare, setDefaultServiceId, setMetadataKeys
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 java.lang.String getMetadataExistsServiceId()
Returns the ServiceId
to use next if metadata (other than
"") exists against any of the configured keys.
ServiceId
to use next if metadata (other than
"") exists against any of the configured keyspublic void setMetadataExistsServiceId(java.lang.String s)
Sets the ServiceId
to use next if metadata (other than
"") exists against any of the configured keys.
s
- the ServiceId
to use next if
metadata (other than "") exists against any of the configured keys