Class HttpHeaderFilterStrategy
The default of the HTTP component, Apache Camel's HttpHeaderFilterStrategy.
An endpoint's headerFilterStrategy=#name replaces it; derive from it to add to it.
A producer () sends every exchange header but the component's control headers
() and empty values, and takes every response header back. A consumer
() takes every request header and answers with every exchange header but redb* and
Camel* ones and null values.
Whatever the strategy, the transport itself never carries the protocol fields (),
and a consumer never takes a received redbHttp.* header (it would pose as one the transport sets, such as
the remote address), never takes a response-only field from a request ()
and never answers with a value the request brought.
public class HttpHeaderFilterStrategy : IHeaderFilterStrategy
Inheritance
Implements
Properties
Consumer
The default strategy of an HTTP consumer.
public static HttpHeaderFilterStrategy Consumer { get; }
Producer
The default strategy of an HTTP producer.
public static HttpHeaderFilterStrategy Producer { get; }
Role
Which side of the exchange the strategy serves: a producer's request, or a consumer's response.
public EndpointRole Role { get; }
Methods
FilterIncoming(string, object?, IExchange)
Whether the header name of an incoming message (a consumed message, a producer's reply) is
public virtual bool FilterIncoming(string name, object? value, IExchange exchange)
FilterOutgoing(string, object?, IExchange)
Whether the exchange header name is dropped instead of going into an outgoing message
public virtual bool FilterOutgoing(string name, object? value, IExchange exchange)
Constructors
HttpHeaderFilterStrategy(EndpointRole)
Creates the default strategy of a producer or of a consumer.