Skip to content

Commit ae34171

Browse files
committed
Add public access to PathMatcher in WebSocket config
Issue: SPR-12845
1 parent beae336 commit ae34171

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ protected final MessageBrokerRegistry getBrokerRegistry() {
223223
protected void configureMessageBroker(MessageBrokerRegistry registry) {
224224
}
225225

226+
/**
227+
* Provide access to the configured PatchMatcher for access from other
228+
* configuration classes.
229+
*/
230+
public final PathMatcher getPathMatcher() {
231+
return getBrokerRegistry().getPathMatcher();
232+
}
233+
226234
@Bean
227235
public SimpAnnotationMethodMessageHandler simpAnnotationMethodMessageHandler() {
228236
SimpAnnotationMethodMessageHandler handler = createAnnotationMethodMessageHandler();

0 commit comments

Comments
 (0)