Class KafkaHeaderFilterStrategy
The default of the Kafka component, Apache Camel's
KafkaHeaderFilterStrategy: a header whose name starts with Camel, camel, org.apache.camel.
or kafka. is neither sent on a record nor taken from one. An endpoint's headerFilterStrategy=#name
replaces it; derive from it to add to it.
So the component's own (all CamelKafka*) never reach the next hop, and a record
that carries such a name cannot set them: the consumer sets them itself, whatever the strategy says. A sent header goes
as its text, a null value as an empty one. A record's content-type header is the exchange's content type either
way (the producer writes it from the exchange, the consumer reads it into the exchange).
public class KafkaHeaderFilterStrategy : IHeaderFilterStrategy
Inheritance
Implements
Properties
Default
The default strategy of a Kafka endpoint.
public static KafkaHeaderFilterStrategy Default { 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)
IsFiltered(string)
Whether name starts with one of the prefixes Camel's strategy filters.
protected static bool IsFiltered(string name)