Class DestinationPatternsMessageCondition
public class DestinationPatternsMessageCondition : AbstractMessageCondition<DestinationPatternsMessageCondition>, IMessageCondition<DestinationPatternsMessageCondition>, IMessageCondition
- Inheritance
-
DestinationPatternsMessageCondition
- Implements
- Inherited Members
Constructors
DestinationPatternsMessageCondition(params string[])
public DestinationPatternsMessageCondition(params string[] patterns)
Parameters
patterns
string[]
DestinationPatternsMessageCondition(string[], IPathMatcher)
public DestinationPatternsMessageCondition(string[] patterns, IPathMatcher matcher)
Parameters
patterns
string[]matcher
IPathMatcher
DestinationPatternsMessageCondition(string[], IRouteMatcher)
public DestinationPatternsMessageCondition(string[] patterns, IRouteMatcher routeMatcher)
Parameters
patterns
string[]routeMatcher
IRouteMatcher
Fields
LOOKUP_DESTINATION_HEADER
public const string LOOKUP_DESTINATION_HEADER = "lookupDestination"
Field Value
Properties
Patterns
public ISet<string> Patterns { get; }
Property Value
Methods
Combine(DestinationPatternsMessageCondition)
Define the rules for combining this condition with another.
public override DestinationPatternsMessageCondition Combine(DestinationPatternsMessageCondition other)
Parameters
other
DestinationPatternsMessageConditionthe condition to combine with
Returns
- DestinationPatternsMessageCondition
the resulting message condition
CompareTo(DestinationPatternsMessageCondition, IMessage)
Compare this condition to another in the context of a specific message.
public override int CompareTo(DestinationPatternsMessageCondition other, IMessage message)
Parameters
other
DestinationPatternsMessageConditionthe other condition to compare to
message
IMessagethe message under process
Returns
- int
results of the comparison
GetContent()
protected override IList GetContent()
Returns
GetMatchingCondition(IMessage)
Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message.
public override DestinationPatternsMessageCondition GetMatchingCondition(IMessage message)
Parameters
message
IMessagethe message under process
Returns
- DestinationPatternsMessageCondition
a condition instance in case of a match; or null if no match
GetToStringInfix()
protected override string GetToStringInfix()