public abstract class BaseMessageDecoder extends Object implements MessageDecoder
Constructor and Description |
---|
BaseMessageDecoder()
Constructor.
|
BaseMessageDecoder(org.opensaml.xml.parse.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 org.opensaml.xml.parse.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
SecurityPolicy s which can be resolved for the message context. |
protected void |
setParserPool(org.opensaml.xml.parse.ParserPool pool)
Sets the parser pool used to deserialize incomming messages.
|
protected org.opensaml.xml.XMLObject |
unmarshallMessage(InputStream messageStream)
Helper method that deserializes and unmarshalls the message from the given stream.
|
public BaseMessageDecoder()
public BaseMessageDecoder(org.opensaml.xml.parse.ParserPool pool)
pool
- parser pool used to deserialize messagespublic void decode(MessageContext messageContext) throws MessageDecodingException, org.opensaml.xml.security.SecurityException
decode
in interface MessageDecoder
messageContext
- current message contextMessageDecodingException
- thrown if the message can not be decodedorg.opensaml.xml.security.SecurityException
- 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 org.opensaml.xml.security.SecurityException
SecurityPolicy
s which can be resolved for the message context.messageContext
- the message context to processorg.opensaml.xml.security.SecurityException
- 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 org.opensaml.xml.parse.ParserPool getParserPool()
protected void setParserPool(org.opensaml.xml.parse.ParserPool pool)
pool
- parser pool used to deserialize incomming messagesprotected org.opensaml.xml.XMLObject unmarshallMessage(InputStream messageStream) throws MessageDecodingException
messageStream
- input stream containing the messageMessageDecodingException
- thrown if there is a problem deserializing and unmarshalling the messageCopyright © 1999–2016. All rights reserved.