public class HttpRequestUtils extends Object
| 构造器和说明 |
|---|
HttpRequestUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javax.servlet.http.HttpServletRequest |
getRequest()
Get the http servlet request
|
static Object |
getRequestAttribute(String name)
Get value from http servlet request attribute with name
|
static javax.servlet.http.HttpSession |
getSession()
Get the http session
|
static Object |
getSessionAttribute(String name)
Get value from http session attribute with name
|
static void |
setRequestAttribute(String name,
Object value)
Set value in http servlet request attribute
|
static void |
setSessionAttribute(String name,
Object value)
Set value in http session attribute
|
public static javax.servlet.http.HttpServletRequest getRequest()
public static void setRequestAttribute(String name, Object value)
name - the namevalue - the value of the namepublic static Object getRequestAttribute(String name)
name - the namepublic static javax.servlet.http.HttpSession getSession()
public static void setSessionAttribute(String name, Object value)
name - the namevalue - the value of the nameCopyright © 2018. All rights reserved.