@ComponentProfile(summary="Switch the active payload of a multi-payload message", tag="multi-payload,multi,payload,switch") public class SwitchPayloadService extends ServiceImp
CONFIRMATION_ID_KEY
Constructor and Description |
---|
SwitchPayloadService() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService()
.
|
void |
doService(AdaptrisMessage msg)
Switch the message payload from one to another.
|
java.lang.String |
getNewPayloadId()
Get the ID of the payload to switch to.
|
protected void |
initService()
.
|
void |
prepare()
Prepare for initialisation.
|
void |
setNewPayloadId(java.lang.String newPayloadId)
Set the ID of the payload to switch to.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public void setNewPayloadId(java.lang.String newPayloadId)
newPayloadId
- The new payload ID.public java.lang.String getNewPayloadId()
public void doService(AdaptrisMessage msg) throws ServiceException
Apply the service to the message.
.msg
- The message whose payload to switch.ServiceException
- wrapping any underlying Exception
sprotected void initService()
initService
in class ServiceImp
protected void closeService()
closeService
in class ServiceImp
public void prepare()