public class ZRequestUtil
extends java.lang.Object
构造器和说明 |
---|
ZRequestUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
addUserQuery(java.lang.String where) |
static java.lang.String |
andAuthUserQuery(java.lang.String condition) |
static java.lang.String |
getCurrentIp(javax.servlet.http.HttpServletRequest request)
获取当前IP
|
static java.lang.String |
getIp()
获取IP
|
static java.lang.String |
getQueryParamsWhere(java.util.Map<java.lang.String,java.lang.Object> paramMap) |
static javax.servlet.http.HttpServletRequest |
getRequest() |
static javax.servlet.http.HttpServletResponse |
getResponse() |
static javax.servlet.http.HttpSession |
getSession()
获取Session
|
static java.lang.String |
getUserId() |
static java.lang.String |
getUserName() |
public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpServletResponse getResponse()
public static javax.servlet.http.HttpSession getSession()
public static java.lang.String getUserId()
public static java.lang.String getUserName()
public static java.lang.String addUserQuery(java.lang.String where)
public static java.lang.String andAuthUserQuery(java.lang.String condition)
public static java.lang.String getIp()
public static java.lang.String getCurrentIp(javax.servlet.http.HttpServletRequest request)
request
- request对象public static java.lang.String getQueryParamsWhere(java.util.Map<java.lang.String,java.lang.Object> paramMap)