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