|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.web.context.StaticHttpContext
public class StaticHttpContext
Makes static calls to DWR then WebWork then ServletContextThreadLocal to retrieve the relevant objects for the current HTTP request.
Use this class rather than making static calls to those classes directly.
WebContextFactory
,
ServletActionContext
,
ServletContextThreadLocal
Constructor Summary | |
---|---|
StaticHttpContext()
|
Method Summary | |
---|---|
HttpServletRequest |
getRequest()
Returns the active HTTP request or null if one cannot be found. |
HttpServletResponse |
getResponse()
Returns the active HTTP response or null if one cannot be found. |
HttpSession |
getSession(boolean create)
Returns the session associated with the active request or, if there is no current session and create is true, returns a new session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticHttpContext()
Method Detail |
---|
public HttpServletRequest getRequest()
HttpContext
getRequest
in interface HttpContext
public HttpServletResponse getResponse()
HttpContext
getResponse
in interface HttpContext
public HttpSession getSession(boolean create)
HttpContext
getSession
in interface HttpContext
create
- should be true to create a new session for the current request or false to return
null if there is no current session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |