Message conditions can be combined (e.g. type + method-level conditions), matched to a specific Message, as well as compared to each other in the context of a Message to determine which one matches a request more closely.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the resulting message conditionthe condition to combine with other)Define the rules for combining this condition with another. |
| public int | |
| public T | Returns: a condition instance in case of a match; ornull if there is no match.Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message. |
| combine | back to summary |
|---|---|
| public T combine(T other) Define the rules for combining this condition with another. For example combining type- and method-level conditions.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(T other, Message<?> message) Compare this condition to another in the context of a specific message.
It is assumed both instances have been obtained via
| |
| getMatchingCondition | back to summary |
|---|---|
| public T getMatchingCondition(Message<?> message) Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message. For example a condition with destination patterns might return a new condition with sorted, matching patterns only.
| |