com.atlassian.sal.jira.web.context
Class HttpContext

java.lang.Object
  extended by com.atlassian.sal.jira.web.context.HttpContext
All Implemented Interfaces:
com.atlassian.sal.api.web.context.HttpContext

public class HttpContext
extends Object
implements com.atlassian.sal.api.web.context.HttpContext

JIRA SAL implementation of the HttpContext, this implementation delegates to the JIRA internal ExecutingHttpRequest class.

Since:
v6.0

Constructor Summary
HttpContext()
           
 
Method Summary
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.http.HttpServletResponse getResponse()
           
 javax.servlet.http.HttpSession getSession(boolean create)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpContext

public HttpContext()
Method Detail

getRequest

public javax.servlet.http.HttpServletRequest getRequest()
Specified by:
getRequest in interface com.atlassian.sal.api.web.context.HttpContext
Returns:
HttpServletRequest
See Also:
HttpContext.getRequest()

getResponse

public javax.servlet.http.HttpServletResponse getResponse()
Specified by:
getResponse in interface com.atlassian.sal.api.web.context.HttpContext
Returns:
HttpServletResponse
See Also:
HttpContext.getResponse()

getSession

public javax.servlet.http.HttpSession getSession(boolean create)
Specified by:
getSession in interface com.atlassian.sal.api.web.context.HttpContext
Parameters:
create - should be true to create a new session for the active request or false to return null if there is no current session
Returns:
the HttpSession associated with this request or null if create is false and the request has no session, or if there is no active request
See Also:
HttpContext.getSession(boolean)


Copyright © 2002-2014 Atlassian. All Rights Reserved.