HttpHandler
public class RequestEncodingHandler extends java.lang.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(java.lang.String name,
ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper) |
|
HttpHandler |
getNext() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
RequestEncodingHandler |
removeEncoding(java.lang.String encoding) |
public RequestEncodingHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangejava.lang.Exception
public RequestEncodingHandler addEncoding(java.lang.String name, ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper)
public RequestEncodingHandler removeEncoding(java.lang.String encoding)
public HttpHandler getNext()
Copyright © 2018. All rights reserved.