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)Returns the session associated with the active request or, if there is no current session and create is true,
 returns a new session. | 
public javax.servlet.http.HttpServletRequest getRequest()
HttpContextgetRequest in interface HttpContextpublic javax.servlet.http.HttpServletResponse getResponse()
HttpContextgetResponse in interface HttpContextpublic javax.servlet.http.HttpSession getSession(boolean create)
HttpContextgetSession in interface HttpContextcreate - should be true to create a new session for the current request or false to return
               null if there is no current sessionCopyright © 2003–2018 Atlassian. All rights reserved.