Package com.atlassian.jira.web
Class ExecutingHttpRequest
java.lang.Object
com.atlassian.jira.web.ExecutingHttpRequest
This has a thread local that contains the currently executing
HttpServletRequest
It is set in the entry filter and set back to null at the end of the filter chain
- Since:
- v4.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTERstatic javax.servlet.http.HttpServletRequestget()static javax.servlet.http.HttpServletResponsestatic com.google.common.base.Supplier<javax.servlet.http.HttpServletRequest>Return aSupplierfor the currently executing HTTP request.static voidset(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER
-
Constructor Details
-
ExecutingHttpRequest
public ExecutingHttpRequest()
-
-
Method Details
-
get
public static javax.servlet.http.HttpServletRequest get()- Returns:
- the currently executing
HttpServletRequeston this thread within JIRA
-
getResponse
public static javax.servlet.http.HttpServletResponse getResponse()- Returns:
- the currently executing
HttpServletResponseon this thread within JIRA
-
getSupplier
@Nonnull public static com.google.common.base.Supplier<javax.servlet.http.HttpServletRequest> getSupplier()Return aSupplierfor the currently executing HTTP request.- Returns:
- a
Supplierfor the currently executing HTTP request.
-
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- Parameters:
httpServletRequest- the current HttpServletRequest
-
clear
public static void clear()DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTERCalled to clear the current HttpServletRequest back to null for this thread
-