HttpHandlerpublic class RequestEncodingHandler extends Object implements HttpHandler
This is not part of the HTTP spec, however there are some applications where it is useful.
It behaves in a similar manner to EncodingHandler, however it deals with the requests
content encoding.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RequestEncodingHandler.Builder |
| Constructor | Description |
|---|---|
RequestEncodingHandler(HttpHandler next) |
| Modifier and Type | Method | Description |
|---|---|---|
RequestEncodingHandler |
addEncoding(String name,
ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper) |
|
HttpHandler |
getNext() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
RequestEncodingHandler |
removeEncoding(String encoding) |
public RequestEncodingHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic RequestEncodingHandler addEncoding(String name, ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper)
public RequestEncodingHandler removeEncoding(String encoding)
public HttpHandler getNext()
Copyright © 2018. All rights reserved.