Class HttpServletRequestHolder


  • public class HttpServletRequestHolder
    extends Object
    This class can be used to bind the HttpServletRequest to a thread local. Please take special care to ALWAYS remove the request from the thread local by calling release().
    Author:
    Christian Kaltepoth
    • Constructor Detail

      • HttpServletRequestHolder

        public HttpServletRequestHolder()
    • Method Detail

      • bind

        public static void bind​(javax.servlet.http.HttpServletRequest request)
        Associate the request with the current thread.
      • release

        public static void release()
        Remove the request that is currently associated with the current thread.
      • get

        public static javax.servlet.http.HttpServletRequest get()