public class ServerNameRedirect301Handler extends Handler
nextHandler| 构造器和说明 |
|---|
ServerNameRedirect301Handler(String originalServerName,
String targetServerName)
Example: new ServerNameRedirectHandler("http://abc.com", "http://www.abc.com")
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
handle(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean[] isHandled)
Handle target
|
public ServerNameRedirect301Handler(String originalServerName, String targetServerName)
originalServerName - The original server name that you want be redirecttargetServerName - The target server name that redirect topublic void handle(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean[] isHandled)
Handlerhandle 在类中 Handlertarget - url target of this web http requestrequest - HttpServletRequest of this http requestresponse - HttpServletRequest of this http requestisHandled - JFinalFilter will invoke doFilter() method if isHandled[0] == false, it is usually
to tell Filter should handle the static resource.Copyright © 2015. All rights reserved.