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.Lock
lock
(package private) javax.servlet.http.HttpServletRequest
originalRequest
(package private) javax.servlet.http.HttpServletRequest
request
(package private) javax.servlet.http.HttpServletResponse
response
-
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.HttpServletRequest
getOriginalRequest()
(package private) javax.servlet.http.HttpServletRequest
getRequest()
(package private) javax.servlet.http.HttpServletResponse
getResponse()
RequestScoper.CloseableScope
open()
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:RequestScoper
Opens 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:
open
in interfaceRequestScoper
-
-