Class URLDecodingHandler

  • All Implemented Interfaces:
    HttpHandler

    public class URLDecodingHandler
    extends java.lang.Object
    implements HttpHandler
    A handler that will decode the URL and query parameters to the specified charset.

    This handler will not have any effect unless the UndertowOptions.DECODE_URL parameter is set to false.

    This is not as efficient as using the parsers built in UTF-8 decoder. Unless you need to decode to something other than UTF-8 you should rely on the parsers decoding instead.

    Author:
    Stuart Douglas
    • Constructor Detail

      • URLDecodingHandler

        public URLDecodingHandler​(HttpHandler next,
                                  java.lang.String charset)
    • Method Detail

      • handleRequest

        public void handleRequest​(HttpServerExchange exchange)
                           throws java.lang.Exception
        Description copied from interface: HttpHandler
        Handle the request.
        Specified by:
        handleRequest in interface HttpHandler
        Parameters:
        exchange - the HTTP request/response exchange
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object