public class RewriteHandler extends Object implements HttpHandler
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<Boolean> | invoked If rewriting occurs, the whole request will be processed again. |
Constructor and Description |
---|
RewriteHandler(RewriteConfig config, HttpHandler next) |
Modifier and Type | Method and Description |
---|---|
void | handleRequest(HttpServerExchange exchange) Handle the request. |
protected static boolean | hasScheme(StringBuffer uri) Determine if a URI string has a scheme component. |
protected ThreadLocal<Boolean> invoked
public RewriteHandler(RewriteConfig config, HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
protected static boolean hasScheme(StringBuffer uri)
scheme
component.Copyright © 2017 JBoss by Red Hat. All rights reserved.