public abstract class BaseHandlerChainAwareMessageEncoder extends BaseMessageEncoder implements HandlerChainAware
HandlerChain.| Constructor and Description |
|---|
BaseHandlerChainAwareMessageEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
protected abstract void |
encodeToTransport(MessageContext messageContext)
Encode the message context to the transport.
|
protected void |
invokeHandlerChain(HandlerChain handlerChain,
MessageContext messageContext)
Invoke a handler chain on the specified message context.
|
protected abstract void |
prepareMessageContext(MessageContext messageContext)
Perform final binding-specific processing of message context and prepare it for encoding
to the transport.
|
protected void |
processOutboundHandlerChain(MessageContext messageContext)
Process the outbound
HandlerChain for the message context, if any. |
encode, logEncodedMessage, marshallMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprovidesMessageConfidentiality, providesMessageIntegrityprotected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode in class BaseMessageEncodermessageContext - current message contextMessageEncodingException - thrown if there is a problem encoding the messageprotected abstract void prepareMessageContext(MessageContext messageContext) throws MessageEncodingException
This should include constructing and populating all binding-specific structure and data that needs to be reflected by the message context's properties.
This method is called prior to processOutboundHandlerChain(MessageContext).
messageContext - the message context to processMessageEncodingException - thrown if there is a problem preparing the message context
for encodingprotected abstract void encodeToTransport(MessageContext messageContext) throws MessageEncodingException
messageContext - the message context to processMessageEncodingException - thrown if there is a problem encoding the message context
to the transportprotected void processOutboundHandlerChain(MessageContext messageContext) throws MessageEncodingException
HandlerChain for the message context, if any.messageContext - the message context to processMessageEncodingException - thrown if a handler indicates a problem handling the messageprotected void invokeHandlerChain(HandlerChain handlerChain, MessageContext messageContext) throws HandlerException
handlerChain - the handle chain to invokemessageContext - the message context to processHandlerException - if handler chain encountered a problem handling the message contextCopyright © 2018 JBoss by Red Hat. All rights reserved.