Class RewriteHandler
- java.lang.Object
-
- io.undertow.servlet.compat.rewrite.RewriteHandler
-
- All Implemented Interfaces:
HttpHandler
public class RewriteHandler extends Object implements HttpHandler
- Author:
- Remy Maucherat
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadLocal<Boolean>invokedIf rewriting occurs, the whole request will be processed again.
-
Constructor Summary
Constructors Constructor Description RewriteHandler(RewriteConfig config, HttpHandler next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.protected static booleanhasScheme(StringBuffer uri)Determine if a URI string has aschemecomponent.
-
-
-
Field Detail
-
invoked
protected ThreadLocal<Boolean> invoked
If rewriting occurs, the whole request will be processed again.
-
-
Constructor Detail
-
RewriteHandler
public RewriteHandler(RewriteConfig config, HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
hasScheme
protected static boolean hasScheme(StringBuffer uri)
Determine if a URI string has aschemecomponent.
-
-