org.opensaml.common.binding.decoding.impl
Class AbstractSOAPHTTPDecoder

java.lang.Object
  extended by org.opensaml.common.binding.decoding.impl.AbstractMessageDecoder<javax.servlet.http.HttpServletRequest>
      extended by org.opensaml.common.binding.decoding.impl.AbstractHTTPMessageDecoder
          extended by org.opensaml.common.binding.decoding.impl.AbstractSOAPHTTPDecoder
All Implemented Interfaces:
HTTPMessageDecoder, MessageDecoder<javax.servlet.http.HttpServletRequest>, SOAPDecoder<javax.servlet.http.HttpServletRequest>, SOAPHTTPDecoder
Direct Known Subclasses:
HTTPSOAP11Decoder, HTTPSOAP11Decoder

public abstract class AbstractSOAPHTTPDecoder
extends AbstractHTTPMessageDecoder
implements SOAPHTTPDecoder

Base class for SOAP over HTTP message encoders.


Constructor Summary
AbstractSOAPHTTPDecoder()
           
 
Method Summary
 void decode()
          Decodes a SAML message in a binding specific manner.
 java.util.List<XMLObject> getSOAPHeaders()
          Gets the SOAP headers to add to the message.
 Envelope getSOAPMessage()
          Gets the SOAP message.
 java.lang.String getSOAPVersion()
          Gets the SOAP version to use.
 
Methods inherited from class org.opensaml.common.binding.decoding.impl.AbstractHTTPMessageDecoder
getMethod, getRelayState, setHttpMethod, setRelayState
 
Methods inherited from class org.opensaml.common.binding.decoding.impl.AbstractMessageDecoder
evaluateSecurityPolicy, getMetadataProvider, getParserPool, getRequest, getSAMLMessage, getSecurityPolicy, getTrustEngine, setMetadataProvider, setParserPool, setRequest, setSAMLMessage, setSecurityPolicy, setTrustEngine, unmarshallMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.common.binding.decoding.MessageDecoder
getBindingURI, getMetadataProvider, getRequest, getSAMLMessage, getSecurityPolicy, getTrustEngine, setMetadataProvider, setRequest, setSecurityPolicy, setTrustEngine
 
Methods inherited from interface org.opensaml.common.binding.decoding.HTTPMessageDecoder
getMethod, getRelayState
 
Methods inherited from interface org.opensaml.common.binding.decoding.MessageDecoder
getBindingURI, getMetadataProvider, getRequest, getSAMLMessage, getSecurityPolicy, getTrustEngine, setMetadataProvider, setRequest, setSecurityPolicy, setTrustEngine
 

Constructor Detail

AbstractSOAPHTTPDecoder

public AbstractSOAPHTTPDecoder()
Method Detail

getSOAPMessage

public Envelope getSOAPMessage()
Gets the SOAP message.

Specified by:
getSOAPMessage in interface SOAPDecoder<javax.servlet.http.HttpServletRequest>
Returns:
SOAP message

getSOAPHeaders

public java.util.List<XMLObject> getSOAPHeaders()
Gets the SOAP headers to add to the message.

Specified by:
getSOAPHeaders in interface SOAPDecoder<javax.servlet.http.HttpServletRequest>
Returns:
SOAP headers to add to the message

getSOAPVersion

public java.lang.String getSOAPVersion()
Gets the SOAP version to use.

Specified by:
getSOAPVersion in interface SOAPDecoder<javax.servlet.http.HttpServletRequest>
Returns:
the SOAP version to use

decode

public void decode()
            throws BindingException,
                   SecurityPolicyException
Decodes a SAML message in a binding specific manner.

Specified by:
decode in interface MessageDecoder<javax.servlet.http.HttpServletRequest>
Throws:
BindingException - thrown if the message can not be decoded
SecurityPolicyException - thrown if the decoded message does not meet the required security policy