org.springframework.messaging.handler

Class DestinationPatternsMessageCondition

    • Field Detail

      • LOOKUP_DESTINATION_HEADER

        public static final java.lang.String LOOKUP_DESTINATION_HEADER
        The name of the "lookup destination" header.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DestinationPatternsMessageCondition

        public DestinationPatternsMessageCondition(java.lang.String... patterns)
        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

        public DestinationPatternsMessageCondition(java.lang.String[] patterns,
                                                   @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