Class RewriteHandler

java.lang.Object
io.undertow.servlet.compat.rewrite.RewriteHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class RewriteHandler extends Object implements io.undertow.server.HttpHandler
Author:
Remy Maucherat
  • Field Details

    • invoked

      protected ThreadLocal<Boolean> invoked
      If rewriting occurs, the whole request will be processed again.
  • Constructor Details

    • RewriteHandler

      public RewriteHandler(RewriteConfig config, io.undertow.server.HttpHandler next)
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Throws:
      Exception
    • hasScheme

      protected static boolean hasScheme(StringBuffer uri)
      Determine if a URI string has a scheme component.