Class ThreadLocalHttpServletResponseSupplier
- java.lang.Object
-
- net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletResponseSupplier
-
- All Implemented Interfaces:
Supplier<javax.servlet.http.HttpServletResponse>,NonnullSupplier<javax.servlet.http.HttpServletResponse>
public class ThreadLocalHttpServletResponseSupplier extends Object implements NonnullSupplier<javax.servlet.http.HttpServletResponse>
An implementation ofNonnullSupplierofHttpServletResponses which looks up the current thread-local servlet response obtained fromHttpServletRequestResponseContext.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalHttpServletResponseSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletResponseget()Get the current HttpServletResponse from ThreadLocal storage.
-
-
-
Method Detail
-
get
@Nonnull public javax.servlet.http.HttpServletResponse get()
Get the current HttpServletResponse from ThreadLocal storage.- Specified by:
getin interfaceNonnullSupplier<javax.servlet.http.HttpServletResponse>- Specified by:
getin interfaceSupplier<javax.servlet.http.HttpServletResponse>- Returns:
- the current response
-
-