public abstract class BaseMessageEncoder extends Object implements MessageEncoder
Constructor and Description |
---|
BaseMessageEncoder()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doEncode(MessageContext messageContext)
Encodes the outbound message onto the outbound transport.
|
void |
encode(MessageContext messageContext)
Encodes the message in the binding specific manner.
|
protected void |
logEncodedMessage(MessageContext messageContext)
Log the encoded message to the protocol message logger.
|
protected Element |
marshallMessage(XMLObject message)
Helper method that marshalls the given message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
providesMessageConfidentiality, providesMessageIntegrity
public void encode(MessageContext messageContext) throws MessageEncodingException
encode
in interface MessageEncoder
messageContext
- current message contextMessageEncodingException
- thrown if the problem can not be encodedprotected void logEncodedMessage(MessageContext messageContext)
messageContext
- the message context to processprotected abstract void doEncode(MessageContext messageContext) throws MessageEncodingException
messageContext
- current message contextMessageEncodingException
- thrown if there is a problem encoding the messageprotected 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 © 2018 JBoss by Red Hat. All rights reserved.