Example usage for org.springframework.util AntPathMatcher AntPathMatcher

List of usage examples for org.springframework.util AntPathMatcher AntPathMatcher

Introduction

In this page you can find the example usage for org.springframework.util AntPathMatcher AntPathMatcher.

Prototype

public AntPathMatcher(String pathSeparator) 

Source Link

Document

A convenient, alternative constructor to use with a custom path separator.

Usage

From source file:ch.rasc.wampspring.method.DestinationPatternsMessageConditionTest.java

@Test
public void prependSlashWithCustomPathSeparator() {
    DestinationPatternsMessageCondition c = new DestinationPatternsMessageCondition(new String[] { "foo" },
            new AntPathMatcher("."));

    assertEquals("Pre-pending should be disabled when not using '/' as path separator", "foo",
            c.getPatterns().iterator().next());
}

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("."));
}