Encoding handlers are added as delegates to this handler, with a specified server side priority.
If a request comes in with no q value then then server will pick the handler with the highest priority as the encoding to use, otherwise the q value will be used to determine the correct handler.
If no handler matches then the identity encoding is assumed. If the identity encoding has been specifically disallowed due to a q value of 0 then the handler will set the response code 406 (Not Acceptable) and return.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ContentEncodingRepository | |
| private volatile HttpHandler | |
| private volatile HttpHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler | |
| public HttpHandler | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public EncodingHandler | |
| public EncodingHandler | |
| public String |
| contentEncodingRepository | back to summary |
|---|---|
| private final ContentEncodingRepository contentEncodingRepository | |
| next | back to summary |
|---|---|
| private volatile HttpHandler next | |
| noEncodingHandler | back to summary |
|---|---|
| private volatile HttpHandler noEncodingHandler | |
| EncodingHandler | back to summary |
|---|---|
| public EncodingHandler(final HttpHandler next, ContentEncodingRepository contentEncodingRepository) | |
| EncodingHandler | back to summary |
|---|---|
| public EncodingHandler(ContentEncodingRepository contentEncodingRepository) | |
| getNext | back to summary |
|---|---|
| public HttpHandler getNext() | |
| getNoEncodingHandler | back to summary |
|---|---|
| public HttpHandler getNoEncodingHandler() | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| setNext | back to summary |
|---|---|
| public EncodingHandler setNext(final HttpHandler next) | |
| setNoEncodingHandler | back to summary |
|---|---|
| public EncodingHandler setNoEncodingHandler(HttpHandler noEncodingHandler) | |
| 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.
| |