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

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
All Implemented Interfaces:
HTTPMessageDecoder, MessageDecoder<javax.servlet.http.HttpServletRequest>
Direct Known Subclasses:
AbstractSOAPHTTPDecoder, HTTPArtifactDecoder, HTTPPostDecoder, HTTPPostDecoder, HTTPRedirectDeflateDecoder

public abstract class AbstractHTTPMessageDecoder
extends AbstractMessageDecoder<javax.servlet.http.HttpServletRequest>
implements HTTPMessageDecoder

Base class for HTTP message decoders handling much of boilerplate code.


Constructor Summary
AbstractHTTPMessageDecoder()
           
 
Method Summary
 java.lang.String getMethod()
          Gets the HTTP method used in the request.
 java.lang.String getRelayState()
          Gets the relay state from the decoded message.
protected  void setHttpMethod(java.lang.String method)
          Sets the HTTP method used by the request.
protected  void setRelayState(java.lang.String state)
          Sets the relay state of the request.
 
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
decode, getBindingURI, getMetadataProvider, getRequest, getSAMLMessage, getSecurityPolicy, getTrustEngine, setMetadataProvider, setRequest, setSecurityPolicy, setTrustEngine
 

Constructor Detail

AbstractHTTPMessageDecoder

public AbstractHTTPMessageDecoder()
Method Detail

getMethod

public java.lang.String getMethod()
Gets the HTTP method used in the request. Possible values are "GET" and "POST".

Specified by:
getMethod in interface HTTPMessageDecoder
Returns:
HTTP method used in the request

setHttpMethod

protected void setHttpMethod(java.lang.String method)
Sets the HTTP method used by the request.

Parameters:
method - HTTP method used by the request

getRelayState

public java.lang.String getRelayState()
Gets the relay state from the decoded message.

Specified by:
getRelayState in interface HTTPMessageDecoder
Returns:
the relay state from the decoded message

setRelayState

protected void setRelayState(java.lang.String state)
Sets the relay state of the request.

Parameters:
state - relay state of the request