Class SwitchPayloadService

    • Constructor Detail

      • SwitchPayloadService

        public SwitchPayloadService()
    • Method Detail

      • setNewPayloadId

        public void setNewPayloadId​(java.lang.String newPayloadId)
        Set the ID of the payload to switch to.
        Parameters:
        newPayloadId - The new payload ID.
      • getNewPayloadId

        public java.lang.String getNewPayloadId()
        Get the ID of the payload to switch to.
        Returns:
        The new payload ID.
      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException
        Switch the message payload from one to another.

        Apply the service to the message.

        .
        Parameters:
        msg - The message whose payload to switch.
        Throws:
        ServiceException - wrapping any underlying Exceptions
      • prepare

        public void prepare()
        Prepare for initialisation..