MessageType
- the message type of the message context on which to operatepublic abstract class BaseHttpServletResponseXMLMessageEncoder<MessageType extends XMLObject> extends AbstractHttpServletResponseMessageEncoder<MessageType>
Constructor and Description |
---|
BaseHttpServletResponseXMLMessageEncoder() |
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, getHttpServletResponse, setHttpServletResponse
doEncode, getMessageContext, prepareContext, setMessageContext
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepareContext, setMessageContext
public BaseHttpServletResponseXMLMessageEncoder()
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 © 2019. All rights reserved.