public class HttpContext extends Object
Constructor and Description |
---|
HttpContext() |
Modifier and Type | Method and Description |
---|---|
static String |
getIp()
获取请求的ip地址
|
static javax.servlet.http.HttpServletRequest |
getRequest()
获取当前请求的Request对象
|
static Map<String,String> |
getRequestParameters()
获取所有请求的值
|
static javax.servlet.http.HttpServletResponse |
getResponse()
获取当前请求的Response对象
|
public static String getIp()
public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpServletResponse getResponse()
Copyright © 2018. All rights reserved.