public interface HandlerInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforeResponse(HttpRequest httpRequest,
HttpResponse httpResponse,
HttpSession httpSession)
响应返回之前
|
void |
postHandle(HttpRequest httpRequest,
HttpResponse httpResponse,
HttpSession httpSession)
请求处理以后
|
boolean |
preHandle(HttpRequest httpRequest,
HttpResponse httpResponse,
HttpSession httpSession)
请求处理之前
|
boolean preHandle(HttpRequest httpRequest, HttpResponse httpResponse, HttpSession httpSession) throws IOException
httpRequest - http请求httpResponse - http响应httpSession - http会话IOExceptionvoid postHandle(HttpRequest httpRequest, HttpResponse httpResponse, HttpSession httpSession) throws IOException
httpRequest - http请求httpResponse - http响应httpSession - http会话IOExceptionvoid beforeResponse(HttpRequest httpRequest, HttpResponse httpResponse, HttpSession httpSession) throws IOException
httpRequest - http请求httpResponse - http响应httpSession - http会话IOExceptionCopyright © 2021. All rights reserved.