Enable use of PathPattern for RSocket routing #22642
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
As of #21292, Spring Messaging supports RSocket.
The
RSocketMessageHandler
implementation extendsMessageMappingMessageHandler
, which is using anAntPathMatcher
as a base for pattern matching. We know that this implementation is not the most optimized, as we have usedPathPatternParser
in Spring WebFlux.Since
PathPatternParser
andPathPattern
can be seen as general purpose utilities, should we move those from spring-web to spring-core? We could keep the current ones in place, deprecate them and make them extend the new ones in spring-core.To be used in Spring Messaging, we'd need to add a new configuration option in
PathPatternParser
to change the separator, which is currently hardcoded to/
- it seems this class has been designed with this possibility in mind.The text was updated successfully, but these errors were encountered: