public interface HeaderFilter
This is used to transform transport and protocol headers according to various strategies for protocol and version negotiation, as well as authentication.
Modifier and Type | Interface and Description |
---|---|
static class |
HeaderFilter.Composite
A composite header filter.
|
Modifier and Type | Field and Description |
---|---|
static HeaderFilter |
NONE
A noop header transformer, used to deconfigure specific transformers.
|
Modifier and Type | Method and Description |
---|---|
static HeaderFilter |
composite(HeaderFilter... filters)
Create a composite header filter from multiple header filters.
|
RequestHeader |
transformClientRequest(RequestHeader request)
Transform the given client request.
|
ResponseHeader |
transformClientResponse(ResponseHeader response,
RequestHeader request)
Transform the given client response.
|
RequestHeader |
transformServerRequest(RequestHeader request)
Transform the given server request.
|
ResponseHeader |
transformServerResponse(ResponseHeader response,
RequestHeader request)
Transform the given server response.
|
static final HeaderFilter NONE
RequestHeader transformClientRequest(RequestHeader request)
This will be invoked on all requests outgoing from the client.
request
- The client request header.RequestHeader transformServerRequest(RequestHeader request)
This will be invoked on all requests incoming to the server.
request
- The server request header.ResponseHeader transformServerResponse(ResponseHeader response, RequestHeader request)
This will be invoked on all responses outgoing from the server.
response
- The server response.request
- The transformed server request. Useful for when the response transformation
requires information from the client.ResponseHeader transformClientResponse(ResponseHeader response, RequestHeader request)
This will be invoked on all responses incoming to the client.
response
- The client response.request
- The client request. Useful for when the response transformation requires
information from the client request.static HeaderFilter composite(HeaderFilter... filters)
The order that the filters are applied are forward for headers being sent over the wire, and in reverse for headers that are received from the wire.
filters
- The filters to create the composite filter from.