com.atlassian.jira.web
Interface HttpServletVariables

All Known Implementing Classes:
JiraWebActionSupport, ProjectActionSupport

@PublicApi
public interface HttpServletVariables

This component can provide the variables that a typical HttpServlet would receive.

Note this only makes sense to use inside a HTTP request thread of execution and hence if you are not inside one it will throw an IllegalStateException.

Since:
v6.0

Method Summary
 javax.servlet.http.HttpServletRequest getHttpRequest()
           
 javax.servlet.http.HttpServletResponse getHttpResponse()
           
 javax.servlet.http.HttpSession getHttpSession()
           
 javax.servlet.ServletContext getServletContext()
           
 

Method Detail

getHttpRequest

javax.servlet.http.HttpServletRequest getHttpRequest()
Returns:
the HttpServletRequest in play
Throws:
IllegalStateException - if you are not inside a HTTP request thread

getHttpSession

javax.servlet.http.HttpSession getHttpSession()
Returns:
the HttpSession in play
Throws:
IllegalStateException - if you are not inside a HTTP request thread

getHttpResponse

javax.servlet.http.HttpServletResponse getHttpResponse()
Returns:
the HttpServletResponse in play
Throws:
IllegalStateException - if you are not inside a HTTP request thread

getServletContext

javax.servlet.ServletContext getServletContext()
Returns:
the ServletContext of the JIRA web application


Copyright © 2002-2013 Atlassian. All Rights Reserved.