public class HttpRequestUtils extends Object
| 构造器和说明 |
|---|
HttpRequestUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javax.servlet.http.HttpServletRequest |
get()
Get the http servlet request
|
static Object |
getAttribute(String key)
Get value from http servlet request attribute with the key
|
static String |
getIp()
Get the client IP
|
static void |
removeAttribute(String key)
Remove value from http servlet request attribute with the key
|
static void |
setAttribute(String key,
Object value)
Set value in http servlet request attribute
|
public static javax.servlet.http.HttpServletRequest get()
public static void setAttribute(String key, Object value)
key - the key of the request attributevalue - the value of the namepublic static Object getAttribute(String key)
key - the key of the request attributepublic static void removeAttribute(String key)
key - the key of the request attributepublic static String getIp()
Copyright © 2019. All rights reserved.