Class AbstractHttpServletRequestMessageDecoder
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,UnmodifiableComponent
,MessageDecoder
,HttpServletRequestMessageDecoder
- Direct Known Subclasses:
BaseHttpServletRequestXMLMessageDecoder
public abstract class AbstractHttpServletRequestMessageDecoder
extends AbstractMessageDecoder
implements HttpServletRequestMessageDecoder
Abstract implementation of
HttpServletRequestMessageDecoder
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javax.servlet.http.HttpServletRequest
The HTTP servlet request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode()
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.protected void
protected void
javax.servlet.http.HttpServletRequest
Get the HTTP servlet request on which to operate.void
setHttpServletRequest
(javax.servlet.http.HttpServletRequest servletRequest) Set the HTTP servlet request on which to operate.Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
doDecode, getMessageContext, setMessageContext
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
getMessageContext
-
Field Details
-
request
@Nullable private javax.servlet.http.HttpServletRequest requestThe HTTP servlet request.
-
-
Constructor Details
-
AbstractHttpServletRequestMessageDecoder
public AbstractHttpServletRequestMessageDecoder()
-
-
Method Details
-
getHttpServletRequest
@Nullable public javax.servlet.http.HttpServletRequest getHttpServletRequest()Get the HTTP servlet request on which to operate.- Specified by:
getHttpServletRequest
in interfaceHttpServletRequestMessageDecoder
- Returns:
- the HTTP servlet request
-
setHttpServletRequest
public void setHttpServletRequest(@Nullable javax.servlet.http.HttpServletRequest servletRequest) Set the HTTP servlet request on which to operate.- Specified by:
setHttpServletRequest
in interfaceHttpServletRequestMessageDecoder
- Parameters:
servletRequest
- the HTTP servlet request
-
decode
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext()
.- Specified by:
decode
in interfaceMessageDecoder
- Overrides:
decode
in classAbstractMessageDecoder
- Throws:
MessageDecodingException
- if there is a problem decoding the message context
-
doDestroy
protected void doDestroy()- Overrides:
doDestroy
in classAbstractMessageDecoder
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-