public class ServerNameRedirect301Handler extends Handler
next, nextHandler
Constructor and Description |
---|
ServerNameRedirect301Handler(String originalServerName,
String targetServerName)
Example: new ServerNameRedirectHandler("http://abc.com", "http://www.abc.com")
|
Modifier and Type | Method and Description |
---|---|
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)
Handler
handle
in class Handler
target
- 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 © 2018. All rights reserved.