Class EncodeMessage

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction

public class EncodeMessage extends AbstractProfileAction
Action that encodes an outbound response from the outbound MessageContext.

The input to setMessageEncoderFactory(Function) is used to obtain a new MessageEncoder to use, and the encoder is destroyed upon completion.

Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX, EventIds.UNABLE_TO_ENCODE
Postcondition:
If ProfileRequestContext.getOutboundMessageContext() != null, it will be injected and encoded.