|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.ws.message.decoder.BaseMessageDecoder
public abstract class BaseMessageDecoder
Base class for message decoders.
| Constructor Summary | |
|---|---|
BaseMessageDecoder()
Constructor. |
|
BaseMessageDecoder(org.opensaml.xml.parse.ParserPool pool)
Constructor. |
|
| Method Summary | |
|---|---|
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 SecurityPolicys 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMessageDecoder()
public BaseMessageDecoder(org.opensaml.xml.parse.ParserPool pool)
pool - parser pool used to deserialize messages| Method Detail |
|---|
public void decode(MessageContext messageContext)
throws MessageDecodingException,
org.opensaml.xml.security.SecurityException
decode in interface MessageDecodermessageContext - current message context
MessageDecodingException - thrown if the message can not be decoded
org.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 process
protected void processSecurityPolicy(MessageContext messageContext)
throws org.opensaml.xml.security.SecurityException
SecurityPolicys which can be resolved for the message context.
messageContext - the message context to process
org.opensaml.xml.security.SecurityException - thrown if the decoded message does not meet the required security constraints
protected abstract void doDecode(MessageContext messageContext)
throws MessageDecodingException
messageContext - current message context
MessageDecodingException - 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 messages
protected org.opensaml.xml.XMLObject unmarshallMessage(InputStream messageStream)
throws MessageDecodingException
messageStream - input stream containing the message
MessageDecodingException - thrown if there is a problem deserializing and unmarshalling the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||