Class RewriteHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

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

      Fields 
      Modifier and Type Field Description
      protected java.lang.ThreadLocal<java.lang.Boolean> invoked
      If rewriting occurs, the whole request will be processed again.
    • Constructor Summary

      Constructors 
      Constructor Description
      RewriteHandler​(RewriteConfig config, io.undertow.server.HttpHandler next)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      protected static boolean hasScheme​(java.lang.StringBuilder uri)
      Determine if a URI string has a scheme component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • invoked

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

      • RewriteHandler

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

      • handleRequest

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

        protected static boolean hasScheme​(java.lang.StringBuilder uri)
        Determine if a URI string has a scheme component.