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_URLparameter 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 classURLDecodingHandler.Builder
-
Constructor Summary
Constructors Constructor Description URLDecodingHandler(HttpHandler next, String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.StringtoString()
-
-
-
Constructor Detail
-
URLDecodingHandler
public URLDecodingHandler(HttpHandler next, String charset)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-