public class ZRedirectUtil
extends java.lang.Object
构造器和说明 |
---|
ZRedirectUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String[] |
getUrls() |
static void |
redirectTo404(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
redirectTo404(javax.servlet.http.HttpServletResponse httpServletResponse)
已过时。
废弃
|
static void |
redirectToCustom(javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String page)
重定向自定义页
|
static void |
redirectToError(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
重定向错误页面
|
static void |
redirectToIndex(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
重定向主页
|
static void |
redirectToLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
重定向登录页
|
static void |
redirectToMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String msg) |
static void |
redirectToUnauthorized(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
重定向未授权页
|
static void |
redirectToWelcome(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
重定向欢迎页
|
public static java.lang.String[] getUrls()
public static void redirectToError(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws java.io.IOException
response
- HttpServletResponse对象request
- HttpServletRequest对象java.io.IOException
- I/O 异常public static void redirectToWelcome(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
response
- HttpServletResponse对象request
- HttpServletRequest对象java.io.IOException
- I/O 异常public static void redirectToLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
response
- HttpServletResponse对象request
- HttpServletRequest对象java.io.IOException
- I/O 异常public static void redirectToIndex(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
response
- HttpServletResponse对象request
- HttpServletRequest对象java.io.IOException
- I/O 异常public static void redirectToUnauthorized(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
response
- HttpServletResponse对象request
- HttpServletRequest对象java.io.IOException
- I/O 异常@Deprecated public static void redirectTo404(javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException
httpServletResponse
- HttpServletResponse对象java.io.IOException
- I/O 异常public static void redirectTo404(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public static void redirectToCustom(javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.String page) throws java.io.IOException
httpServletResponse
- HttpServletResponse对象page
- 自定义页java.io.IOException
- I/O 异常public static void redirectToMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String msg) throws java.io.IOException
java.io.IOException