Package org.springframework.messaging.handler

Examples of org.springframework.messaging.handler.DestinationPatternsMessageCondition


  @Override
  public SimpMessageMappingInfo combine(SimpMessageMappingInfo other) {
    SimpMessageTypeMessageCondition typeCond =
        this.getMessageTypeMessageCondition().combine(other.getMessageTypeMessageCondition());
    DestinationPatternsMessageCondition destCond =
        this.destinationConditions.combine(other.getDestinationConditions());
    return new SimpMessageMappingInfo(typeCond, destCond);
  }
View Full Code Here


  public SimpMessageMappingInfo getMatchingCondition(Message<?> message) {
    SimpMessageTypeMessageCondition typeCond = this.messageTypeMessageCondition.getMatchingCondition(message);
    if (typeCond == null) {
      return null;
    }
    DestinationPatternsMessageCondition destCond = this.destinationConditions.getMatchingCondition(message);
    if (destCond == null) {
      return null;
    }
    return new SimpMessageMappingInfo(typeCond, destCond);
  }
View Full Code Here

    return null;
  }

  private SimpMessageMappingInfo createMessageMappingCondition(MessageMapping annotation) {
    return new SimpMessageMappingInfo(SimpMessageTypeMessageCondition.MESSAGE,
        new DestinationPatternsMessageCondition(annotation.value(), this.pathMatcher));
  }
View Full Code Here

        new DestinationPatternsMessageCondition(annotation.value(), this.pathMatcher));
  }

  private SimpMessageMappingInfo createSubscribeCondition(SubscribeMapping annotation) {
    return new SimpMessageMappingInfo(SimpMessageTypeMessageCondition.SUBSCRIBE,
        new DestinationPatternsMessageCondition(annotation.value(), this.pathMatcher));
  }
View Full Code Here

    @Override
    protected Comparator<String> getMappingComparator(final Message<?> message) {
      return new Comparator<String>() {
        @Override
        public int compare(String info1, String info2) {
          DestinationPatternsMessageCondition cond1 = new DestinationPatternsMessageCondition(info1);
          DestinationPatternsMessageCondition cond2 = new DestinationPatternsMessageCondition(info2);
          return cond1.compareTo(cond2, message);
        }
      };
    }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.handler.DestinationPatternsMessageCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.