public final class WebContext extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
WebContext.WebContextFilter
Implementation of the
cross-origin resource sharing.
|
| 构造器和说明 |
|---|
WebContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearParameter() |
static LiteDevice |
getClientDevice()
获取客户端设备类型
|
static String |
getClientIp()
获取客户端IP
|
static String |
getParameter(String name)
获取参数
|
static String[] |
getParameterValues(String name)
获取参数
|
static javax.servlet.http.HttpServletRequest |
getRequest() |
static javax.servlet.http.HttpServletResponse |
getResponse() |
String |
getText() |
String |
getText(String charset)
Gets the text string from request input stream
|
static void |
setParameter(String name,
String value)
设置参数
|
public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpServletResponse getResponse()
public static void clearParameter()
public String getText()
public String getText(String charset)
charset - the string encodingpublic static String getClientIp()
public static LiteDevice getClientDevice()
Copyright © 2023. All rights reserved.