Example usage for org.springframework.messaging.simp.config MessageBrokerRegistry setPathMatcher

List of usage examples for org.springframework.messaging.simp.config MessageBrokerRegistry setPathMatcher

Introduction

In this page you can find the example usage for org.springframework.messaging.simp.config MessageBrokerRegistry setPathMatcher.

Prototype

public MessageBrokerRegistry setPathMatcher(PathMatcher pathMatcher) 

Source Link

Document

Configure the PathMatcher to use to match the destinations of incoming messages to @MessageMapping and @SubscribeMapping methods.

Usage

From source file:org.jimsey.project.sswt.WebSocketConfig.java

@Override
public void configureMessageBroker(final MessageBrokerRegistry config) {
    // to support stomp over websockets natively...
    // config.enableSimpleBroker("/topic");

    // to use the stomp support build into RabbitMQ...
    config.enableStompBrokerRelay("/topic", "/queue").setRelayHost("localhost").setRelayPort(61613)
            .setSystemLogin("guest").setSystemPasscode("guest").setVirtualHost("/");

    config.setApplicationDestinationPrefixes("/app");
    config.setPathMatcher(new AntPathMatcher("."));
}

From source file:org.jimsey.projects.turbine.condenser.WebSocketConfig.java

@Override
public void configureMessageBroker(final MessageBrokerRegistry config) {
    // to support stomp over websockets natively...
    // config.enableSimpleBroker("/topic");

    // to use the stomp support build into RabbitMQ...
    config.enableStompBrokerRelay("/topic", "/queue").setRelayHost("localhost").setRelayPort(61613)
            .setSystemLogin("guest").setSystemPasscode("guest");
    // .setVirtualHost("/");

    config.setApplicationDestinationPrefixes("/app");
    config.setPathMatcher(new AntPathMatcher("."));
}