MessageType - the message type of the message context on which to operatepublic abstract class BaseHttpClientRequestXMLMessageEncoder<MessageType extends XMLObject> extends AbstractHttpClientRequestMessageEncoder<MessageType>
| Modifier and Type | Field and Description |
|---|---|
private Logger |
log
Class logger.
|
private Logger |
protocolMessageLog
Used to log protocol messages.
|
| Constructor and Description |
|---|
BaseHttpClientRequestXMLMessageEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode()
Encode the
MessageContext supplied via MessageEncoder.setMessageContext(MessageContext) to the sink. |
protected XMLObject |
getMessageToLog()
Get the XMLObject which will be logged as the protocol message.
|
protected void |
logEncodedMessage()
Log the encoded message to the protocol message logger.
|
protected Element |
marshallMessage(XMLObject message)
Helper method that marshalls the given message.
|
doDestroy, doInitialize, getHttpRequest, setHttpRequestdoEncode, getMessageContext, prepareContext, setMessageContextdestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareContext, setMessageContextprivate Logger protocolMessageLog
private final Logger log
public BaseHttpClientRequestXMLMessageEncoder()
public void encode()
throws MessageEncodingException
MessageContext supplied via MessageEncoder.setMessageContext(MessageContext) to the sink.encode in interface MessageEncoder<MessageType extends XMLObject>encode in class AbstractMessageEncoder<MessageType extends XMLObject>MessageEncodingException - if there is a problem encoding the message contextprotected void logEncodedMessage()
protected XMLObject getMessageToLog()
protected Element marshallMessage(XMLObject message) throws MessageEncodingException
message - message the marshall and serializeMessageEncodingException - thrown if the give message can not be marshalled into its DOM representationCopyright © 1999–2015. All rights reserved.