Package com.google.inject.servlet
Class GuiceFilter.Context
- java.lang.Object
-
- com.google.inject.servlet.GuiceFilter.Context
-
- All Implemented Interfaces:
RequestScoper
- Enclosing class:
- GuiceFilter
static class GuiceFilter.Context extends java.lang.Object implements RequestScoper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.inject.servlet.RequestScoper
RequestScoper.CloseableScope
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.locks.Locklock(package private) javax.servlet.http.HttpServletRequestoriginalRequest(package private) javax.servlet.http.HttpServletRequestrequest(package private) javax.servlet.http.HttpServletResponseresponse
-
Constructor Summary
Constructors Constructor Description Context(javax.servlet.http.HttpServletRequest originalRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) javax.servlet.http.HttpServletRequestgetOriginalRequest()(package private) javax.servlet.http.HttpServletRequestgetRequest()(package private) javax.servlet.http.HttpServletResponsegetResponse()RequestScoper.CloseableScopeopen()Opens up the request scope until the returned object is closed.
-
-
-
Method Detail
-
getOriginalRequest
javax.servlet.http.HttpServletRequest getOriginalRequest()
-
getRequest
javax.servlet.http.HttpServletRequest getRequest()
-
getResponse
javax.servlet.http.HttpServletResponse getResponse()
-
open
public RequestScoper.CloseableScope open()
Description copied from interface:RequestScoperOpens up the request scope until the returned object is closed. Implementations should ensure (e.g. by blocking) that multiple threads cannot open the same request scope concurrently. It is allowable to open the same request scope on the same thread, as long as open/close calls are correctly nested.- Specified by:
openin interfaceRequestScoper
-
-