Class GuiceFilter.Context

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • originalRequest

        final javax.servlet.http.HttpServletRequest originalRequest
      • request

        final javax.servlet.http.HttpServletRequest request
      • response

        final javax.servlet.http.HttpServletResponse response
      • lock

        final java.util.concurrent.locks.Lock lock
    • Constructor Detail

      • Context

        Context​(javax.servlet.http.HttpServletRequest originalRequest,
                javax.servlet.http.HttpServletRequest request,
                javax.servlet.http.HttpServletResponse response)
    • 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 interface RequestScoper