Class RequestEncodingHandler
- java.lang.Object
-
- io.undertow.server.handlers.encoding.RequestEncodingHandler
-
- All Implemented Interfaces:
HttpHandler
public class RequestEncodingHandler extends java.lang.Object implements HttpHandler
Handler that serves as the basis for request content encoding.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.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestEncodingHandler.Builder
-
Constructor Summary
Constructors Constructor Description RequestEncodingHandler(HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
java.lang.String
toString()
-
-
-
Constructor Detail
-
RequestEncodingHandler
public RequestEncodingHandler(HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
java.lang.Exception
-
addEncoding
public RequestEncodingHandler addEncoding(java.lang.String name, ConduitWrapper<org.xnio.conduits.StreamSourceConduit> wrapper)
-
removeEncoding
public RequestEncodingHandler removeEncoding(java.lang.String encoding)
-
getNext
public HttpHandler getNext()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-