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 NonnullSupplier<javax.servlet.http.HttpServletRequest>Current HTTP request, if available.private final org.slf4j.LoggerLogger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode()Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext().protected voidjavax.servlet.http.HttpServletRequestGet the HTTP servlet request on which to operate.NonnullSupplier<javax.servlet.http.HttpServletRequest>Get the supplier for HTTP request if available.voidsetHttpServletRequest(javax.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.voidsetHttpServletRequestSupplier(NonnullSupplier<javax.servlet.http.HttpServletRequest> requestSupplier) Set the supplier for the HTTP servlet request on which to operate.Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
doDecode, doDestroy, getMessageContext, setMessageContextMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitializedMethods inherited from interface org.opensaml.messaging.decoder.MessageDecoder
getMessageContext
-
Field Details
-
log
private final org.slf4j.Logger logLogger. -
httpServletRequestSupplier
Current HTTP request, if available.
-
-
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:
getHttpServletRequestin interfaceHttpServletRequestMessageDecoder- Returns:
- the HTTP servlet request
-
getHttpServletRequestSupplier
@Nullable public NonnullSupplier<javax.servlet.http.HttpServletRequest> getHttpServletRequestSupplier()Get the supplier for HTTP request if available.- Returns:
- current HTTP request
-
setHttpServletRequest
@Deprecated(since="4.3", forRemoval=true) public void setHttpServletRequest(@Nullable javax.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Set the HTTP servlet request on which to operate.- Specified by:
setHttpServletRequestin interfaceHttpServletRequestMessageDecoder- Parameters:
request- the HTTP servlet request
-
setHttpServletRequestSupplier
public void setHttpServletRequestSupplier(@Nullable NonnullSupplier<javax.servlet.http.HttpServletRequest> requestSupplier) Set the supplier for the HTTP servlet request on which to operate.- Specified by:
setHttpServletRequestSupplierin interfaceHttpServletRequestMessageDecoder- Parameters:
requestSupplier- the HTTP servlet request
-
decode
Decode message data from the source and store it so that it may be retrieved viaMessageDecoder.getMessageContext().- Specified by:
decodein interfaceMessageDecoder- Overrides:
decodein classAbstractMessageDecoder- Throws:
MessageDecodingException- if there is a problem decoding the message context
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-