Class ExecutingHttpRequest

java.lang.Object
com.atlassian.crowd.plugin.web.ExecutingHttpRequest

public class ExecutingHttpRequest extends Object
This has a thread local that contains the current RequestContext.

It is set in the entry filter and set back to null at the end of the filter chain.

Since:
v2.7
  • Constructor Details

    • ExecutingHttpRequest

      public ExecutingHttpRequest()
  • Method Details

    • get

      public static Optional<RequestContext> get()
      Returns:
      the current request context for this thread
    • set

      public static void set(RequestContext requestContext)
      DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

      Set the request context for this thread

    • set

      public static void set(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
      DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

      Set the request context for this thread

    • clear

      public static void clear()
      DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

      Clear the request context for this thread