Example usage for org.springframework.messaging.simp.stomp StompCommand requiresDestination

List of usage examples for org.springframework.messaging.simp.stomp StompCommand requiresDestination

Introduction

In this page you can find the example usage for org.springframework.messaging.simp.stomp StompCommand requiresDestination.

Prototype

public boolean requiresDestination() 

Source Link

Usage

From source file:org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler.java

protected boolean checkDestinationPrefix(StompCommand command, String destination) {
    if (!command.requiresDestination()) {
        return true;
    } else if (destination == null) {
        return false;
    }/* w ww .j  ava  2s . co  m*/
    for (String prefix : this.destinationPrefixes) {
        if (destination.startsWith(prefix)) {
            return true;
        }
    }
    return false;
}