Skip to content

Enable use of PathPattern for RSocket routing #22642

@bclozel

Description

@bclozel

As of #21292, Spring Messaging supports RSocket.

The RSocketMessageHandler implementation extends MessageMappingMessageHandler, which is using an AntPathMatcher as a base for pattern matching. We know that this implementation is not the most optimized, as we have used PathPatternParser in Spring WebFlux.

Since PathPatternParser and PathPattern 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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions