public abstract class BaseMessageDecoder extends Object implements MessageDecoder
| Constructor and Description |
|---|
BaseMessageDecoder()
Constructor.
|
BaseMessageDecoder(ParserPool pool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(MessageContext messageContext)
Decodes a message in a binding specific manner.
|
protected abstract void |
doDecode(MessageContext messageContext)
Decodes a message, updating the message context.
|
protected ParserPool |
getParserPool()
Gets the parser pool used to deserialize incomming messages.
|
protected void |
logDecodedMessage(MessageContext messageContext)
Log the decoded message to the protocol message logger.
|
protected void |
processSecurityPolicy(MessageContext messageContext)
Process any
SecurityPolicys which can be resolved for the message context. |
protected void |
setParserPool(ParserPool pool)
Sets the parser pool used to deserialize incomming messages.
|
protected XMLObject |
unmarshallMessage(InputStream messageStream)
Helper method that deserializes and unmarshalls the message from the given stream.
|
public BaseMessageDecoder()
public BaseMessageDecoder(ParserPool pool)
pool - parser pool used to deserialize messagespublic void decode(MessageContext messageContext) throws MessageDecodingException, SecurityException
decode in interface MessageDecodermessageContext - current message contextMessageDecodingException - thrown if the message can not be decodedSecurityException - thrown if the decoded message does not meet the required security constraintsprotected void logDecodedMessage(MessageContext messageContext)
messageContext - the message context to processprotected void processSecurityPolicy(MessageContext messageContext) throws SecurityException
SecurityPolicys which can be resolved for the message context.messageContext - the message context to processSecurityException - thrown if the decoded message does not meet the required security constraintsprotected abstract void doDecode(MessageContext messageContext) throws MessageDecodingException
messageContext - current message contextMessageDecodingException - thrown if there is a problem decoding the messageprotected ParserPool getParserPool()
protected void setParserPool(ParserPool pool)
pool - parser pool used to deserialize incomming messagesprotected XMLObject unmarshallMessage(InputStream messageStream) throws MessageDecodingException
messageStream - input stream containing the messageMessageDecodingException - thrown if there is a problem deserializing and unmarshalling the messageCopyright © 2018 JBoss by Red Hat. All rights reserved.