This handler will not have any effect unless the io. 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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AttachmentKey | |
| private final String | |
| private static final ThreadLocal | |
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static void | |
| private static StringBuilder | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| private static boolean | |
| public String |
| ALREADY_DECODED | back to summary |
|---|---|
| private static final AttachmentKey<Object> ALREADY_DECODED | |
| charset | back to summary |
|---|---|
| private final String charset | |
| DECODING_BUFFER_CACHE | back to summary |
|---|---|
| private static final ThreadLocal<StringBuilder> DECODING_BUFFER_CACHE | |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| URLDecodingHandler | back to summary |
|---|---|
| public URLDecodingHandler(final HttpHandler next, final String charset) | |
| decodePath | back to summary |
|---|---|
| private static void decodePath(HttpServerExchange exchange, String charset, StringBuilder sb) | |
| decodePathTemplateMatch | back to summary |
|---|---|
| private static void decodePathTemplateMatch(HttpServerExchange exchange, String charset, StringBuilder sb) | |
| decodeQueryString | back to summary |
|---|---|
| private static void decodeQueryString(HttpServerExchange exchange, String charset, StringBuilder sb) | |
| getStringBuilderForDecoding | back to summary |
|---|---|
| private static StringBuilder getStringBuilderForDecoding(HttpServerExchange exchange) | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| shouldDecode | back to summary |
|---|---|
| private static boolean shouldDecode(final HttpServerExchange exchange) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerWrapper | build(Map<String, Object>
The handler config config)Implements io. Creates the handler |
| public String | |
| public String | name()
Implements io. The string representation of the handler name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public HandlerWrapper build(Map<String, Object> config) Implements io. Doc from io. Creates the handler
| |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the handler name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler |
| charset | back to summary |
|---|---|
| private final String charset | |
| Wrapper | back to summary |
|---|---|
| private Wrapper(String charset) | |
| wrap | back to summary |
|---|---|
| public HttpHandler wrap(HttpHandler handler) Implements io.
| |