spring-framework / org.springframework.messaging.handler / MessageCondition / getMatchingCondition

getMatchingCondition

@Nullable abstract fun getMatchingCondition(message: Message<*>): T

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.

Return
a condition instance in case of a match; or null if there is no match.