public class

ExecutingHttpRequest

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.ExecutingHttpRequest

Class Overview

This has a thread local that contains the currently executing javax.servlet.http.HttpServletRequest

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

Summary

Public Constructors
ExecutingHttpRequest()
Public Methods
static void clear()
DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

Called to clear the current HttpServletRequest back to null for this thread

static HttpServletRequest get()
static HttpServletResponse getResponse()
@Nonnull static Supplier<HttpServletRequest> getSupplier()
Return a Supplier for the currently executing HTTP request.
static void set(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ExecutingHttpRequest ()

Public Methods

public static void clear ()

DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

Called to clear the current HttpServletRequest back to null for this thread

public static HttpServletRequest get ()

Returns
  • the currently executing javax.servlet.http.HttpServletRequest on this thread within JIRA

public static HttpServletResponse getResponse ()

Returns
  • the currently executing javax.servlet.http.HttpServletResponse on this thread within JIRA

@Nonnull public static Supplier<HttpServletRequest> getSupplier ()

Return a Supplier for the currently executing HTTP request.

Returns
  • a Supplier for the currently executing HTTP request.

public static void set (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

DO NOT CALL THIS OUTSIDE OF THE FIRST WEB FILTER

Parameters
httpServletRequest the current HttpServletRequest