spring-framework / org.springframework.messaging.handler / DestinationPatternsMessageCondition / <init>

<init>

DestinationPatternsMessageCondition(vararg patterns: String)

Creates a new instance with the given destination patterns. Each pattern that is not empty and does not start with "/" is prepended with "/".

Parameters

patterns - 0 or more URL patterns; if 0 the condition will match to every request.

DestinationPatternsMessageCondition(patterns: Array<String>, @Nullable pathMatcher: PathMatcher)

Alternative constructor accepting a custom PathMatcher.

Parameters

patterns - the URL patterns to use; if 0, the condition will match to every request.

pathMatcher - the PathMatcher to use