Package io.undertow.server.handlers
Class URLDecodingHandler
- java.lang.Object
-
- io.undertow.server.handlers.URLDecodingHandler
-
- All Implemented Interfaces:
HttpHandler
public class URLDecodingHandler extends 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
URLDecodingHandler.Builder
-
Constructor Summary
Constructors Constructor Description URLDecodingHandler(HttpHandler next, String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.String
toString()
-
-
-
Constructor Detail
-
URLDecodingHandler
public URLDecodingHandler(HttpHandler next, String charset)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
-