org.opensaml.ws.soap.soap11.decoder
Class SOAP11Decoder

java.lang.Object
  extended by org.opensaml.ws.message.decoder.BaseMessageDecoder
      extended by org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageDecoder
          extended by org.opensaml.ws.soap.soap11.decoder.SOAP11Decoder
All Implemented Interfaces:
MessageDecoder, HandlerChainAware
Direct Known Subclasses:
HTTPSOAP11Decoder

public class SOAP11Decoder
extends BaseHandlerChainAwareMessageDecoder

Basic SOAP 1.1 decoder.


Field Summary
private  org.slf4j.Logger log
          Class logger.
 
Constructor Summary
SOAP11Decoder()
          Constructor.
SOAP11Decoder(ParserPool pool)
          Constructor.
 
Method Summary
private  void checkUnderstoodSOAPHeaders(MessageContext messageContext)
          Check that all headers which carry the soap11:mustUnderstand attribute and which are targeted to this SOAP node via the soap11:actor were understood by the decoder.
 void decode(MessageContext messageContext)
          Decodes a message in a binding specific manner.
protected  void doDecode(MessageContext messageContext)
          Decodes a message, updating the message context.
 
Methods inherited from class org.opensaml.ws.message.handler.BaseHandlerChainAwareMessageDecoder
invokeHandlerChain, processPostSecurityInboundHandlerChain, processPreSecurityInboundHandlerChain
 
Methods inherited from class org.opensaml.ws.message.decoder.BaseMessageDecoder
getParserPool, logDecodedMessage, processSecurityPolicy, setParserPool, unmarshallMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.slf4j.Logger log
Class logger.

Constructor Detail

SOAP11Decoder

public SOAP11Decoder()
Constructor.


SOAP11Decoder

public SOAP11Decoder(ParserPool pool)
Constructor.

Parameters:
pool - parser pool used to deserialize messages
Method Detail

doDecode

protected void doDecode(MessageContext messageContext)
                 throws MessageDecodingException
Decodes a message, updating the message context. Security policy evaluation is handled outside this method.

Specified by:
doDecode in class BaseMessageDecoder
Parameters:
messageContext - current message context
Throws:
MessageDecodingException - thrown if there is a problem decoding the message

decode

public void decode(MessageContext messageContext)
            throws MessageDecodingException,
                   SecurityException
Decodes a message in a binding specific manner.

Specified by:
decode in interface MessageDecoder
Overrides:
decode in class BaseHandlerChainAwareMessageDecoder
Parameters:
messageContext - current message context
Throws:
MessageDecodingException - thrown if the message can not be decoded
SecurityException - thrown if the decoded message does not meet the required security constraints

checkUnderstoodSOAPHeaders

private void checkUnderstoodSOAPHeaders(MessageContext messageContext)
                                 throws MessageDecodingException
Check that all headers which carry the soap11:mustUnderstand attribute and which are targeted to this SOAP node via the soap11:actor were understood by the decoder.

Parameters:
messageContext - the message context being processed
Throws:
MessageDecodingException - thrown if a SOAP header requires understanding by this node but was not understood


Copyright © 1999-2013. All Rights Reserved.