Class RabbitMQHeaderFilterStrategy
The default of the RabbitMQ component, Apache Camel's
RabbitMQHeaderFilterStrategy. An endpoint's headerFilterStrategy=#name replaces it; derive from it to
add to it.
A producer's request and a consumer's RPC reply carry every exchange header but the component's own
redbRmq.* and null values as AMQP headers; a consumed message and an RPC reply bring every AMQP header in.
Whatever the strategy, a header named after a basic property of the message (MessageId, CorrelationId,
ReplyTo...) goes into that property, not into the headers, and the delivery metadata
(redbRmq.*, the basic properties by name) is set by the consumer.
public class RabbitMQHeaderFilterStrategy : IHeaderFilterStrategy
Inheritance
Implements
Properties
Default
The default strategy of a RabbitMQ endpoint.
public static RabbitMQHeaderFilterStrategy 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)