public 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 and Description |
---|---|
static class | RequestEncodingHandler.Builder |
Constructor and Description |
---|
RequestEncodingHandler(HttpHandler next) |
Modifier and Type | Method and 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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public RequestEncodingHandler addEncoding(String name, ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper)
public RequestEncodingHandler removeEncoding(String encoding)
public HttpHandler getNext()
Copyright © 2017 JBoss by Red Hat. All rights reserved.