Class HttpServletVariablesImpl

java.lang.Object
com.atlassian.jira.web.HttpServletVariablesImpl
All Implemented Interfaces:
HttpServletVariables, com.atlassian.sal.api.web.context.HttpContext

public class HttpServletVariablesImpl extends Object implements HttpServletVariables, com.atlassian.sal.api.web.context.HttpContext
An injectable alternative to ExecutingHttpRequest
Since:
v6.0
  • Constructor Details

    • HttpServletVariablesImpl

      public HttpServletVariablesImpl()
  • Method Details

    • getHttpRequest

      public javax.servlet.http.HttpServletRequest getHttpRequest()
      Specified by:
      getHttpRequest in interface HttpServletVariables
      Returns:
      the HttpServletRequest in play
    • getHttpSession

      public javax.servlet.http.HttpSession getHttpSession()
      Specified by:
      getHttpSession in interface HttpServletVariables
      Returns:
      the HttpSession in play
    • getHttpResponse

      public javax.servlet.http.HttpServletResponse getHttpResponse()
      Specified by:
      getHttpResponse in interface HttpServletVariables
      Returns:
      the HttpServletResponse in play
    • getServletContext

      public javax.servlet.ServletContext getServletContext()
      Specified by:
      getServletContext in interface HttpServletVariables
      Returns:
      the ServletContext of the JIRA web application
    • getRequest

      @Nullable public javax.servlet.http.HttpServletRequest getRequest()
      Specified by:
      getRequest in interface com.atlassian.sal.api.web.context.HttpContext
    • getResponse

      @Nullable public javax.servlet.http.HttpServletResponse getResponse()
      Specified by:
      getResponse in interface com.atlassian.sal.api.web.context.HttpContext
    • getSession

      @Nullable public javax.servlet.http.HttpSession getSession(boolean create)
      Specified by:
      getSession in interface com.atlassian.sal.api.web.context.HttpContext