public class StaticHttpContext extends Object implements HttpContext
Use this class rather than making static calls to those classes directly.
ServletActionContext,
ServletContextThreadLocal| Constructor and Description |
|---|
StaticHttpContext() |
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the active HTTP request or null if one cannot be found.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the active HTTP response or null if one cannot be found.
|
javax.servlet.http.HttpSession |
getSession(boolean create)
Deprecated.
Sessions are no longer vertigo compatible. For more information see CONFDEV-48500.
|
public javax.servlet.http.HttpServletRequest getRequest()
HttpContextgetRequest in interface HttpContextpublic javax.servlet.http.HttpServletResponse getResponse()
HttpContextgetResponse in interface HttpContext@Deprecated public javax.servlet.http.HttpSession getSession(boolean create)
getSession in interface HttpContextCopyright © 2003–2016 Atlassian. All rights reserved.