public abstract class BaseHandlerChainAwareMessageEncoder extends BaseMessageEncoder implements HandlerChainAware
HandlerChain
.コンストラクタと説明 |
---|
BaseHandlerChainAwareMessageEncoder() |
修飾子とタイプ | メソッドと説明 |
---|---|
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, marshallMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
providesMessageConfidentiality, providesMessageIntegrity
protected void doEncode(MessageContext messageContext) throws MessageEncodingException
doEncode
クラス内 BaseMessageEncoder
messageContext
- 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 © 2012. All Rights Reserved.