Class ThreadLocalHttpServletRequestSupplier
java.lang.Object
net.shibboleth.shared.servlet.impl.ThreadLocalHttpServletRequestSupplier
- All Implemented Interfaces:
Supplier<HttpServletRequest>,NonnullSupplier<HttpServletRequest>
public class ThreadLocalHttpServletRequestSupplier
extends Object
implements NonnullSupplier<HttpServletRequest>
An implementation of
NonnullSupplier which looks up the current thread-local
servlet request obtained from HttpServletRequestResponseContext, raising an
IllegalStateException if null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Get the current HttpServletRequest from ThreadLocal storage.
-
Constructor Details
-
ThreadLocalHttpServletRequestSupplier
public ThreadLocalHttpServletRequestSupplier()
-
-
Method Details
-
get
Get the current HttpServletRequest from ThreadLocal storage.- Specified by:
getin interfaceNonnullSupplier<HttpServletRequest>- Specified by:
getin interfaceSupplier<HttpServletRequest>- Returns:
- the current request
-