spring-framework / org.springframework.messaging.handler.invocation / AbstractMethodMessageHandler / setDestinationPrefixes

setDestinationPrefixes

open fun setDestinationPrefixes(@Nullable prefixes: MutableCollection<String>): Unit

When this property is configured only messages to destinations matching one of the configured prefixes are eligible for handling. When there is a match the prefix is removed and only the remaining part of the destination is used for method-mapping purposes.

By default, no prefixes are configured in which case all messages are eligible for handling.