Package com.atlassian.jira.web
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponsejavax.servlet.http.HttpSessionjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponsejavax.servlet.ServletContextjavax.servlet.http.HttpSessiongetSession(boolean create)
-
Constructor Details
-
HttpServletVariablesImpl
public HttpServletVariablesImpl()
-
-
Method Details
-
getHttpRequest
public javax.servlet.http.HttpServletRequest getHttpRequest()- Specified by:
getHttpRequestin interfaceHttpServletVariables- Returns:
- the
HttpServletRequestin play
-
getHttpSession
public javax.servlet.http.HttpSession getHttpSession()- Specified by:
getHttpSessionin interfaceHttpServletVariables- Returns:
- the
HttpSessionin play
-
getHttpResponse
public javax.servlet.http.HttpServletResponse getHttpResponse()- Specified by:
getHttpResponsein interfaceHttpServletVariables- Returns:
- the
HttpServletResponsein play
-
getServletContext
public javax.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfaceHttpServletVariables- Returns:
- the
ServletContextof the JIRA web application
-
getRequest
@Nullable public javax.servlet.http.HttpServletRequest getRequest()- Specified by:
getRequestin interfacecom.atlassian.sal.api.web.context.HttpContext
-
getResponse
@Nullable public javax.servlet.http.HttpServletResponse getResponse()- Specified by:
getResponsein interfacecom.atlassian.sal.api.web.context.HttpContext
-
getSession
@Nullable public javax.servlet.http.HttpSession getSession(boolean create) - Specified by:
getSessionin interfacecom.atlassian.sal.api.web.context.HttpContext
-