Package ch.rasc.wampspring.message

Examples of ch.rasc.wampspring.message.UnsubscribeMessage


    // For a proper cleanup we now create an UnsubscribeMessage for every
    // listed topicURI, send them to the AnnotationMethodHandler so he can
    // call any available method that is annotated with
    // @WampUnsubscribeListener
    for (String topicURI : topicURIs) {
      UnsubscribeMessage unsubscribeMessage = new UnsubscribeMessage(topicURI);
      unsubscribeMessage.addHeader(WampMessageHeader.WEBSOCKET_SESSION_ID, sessionId);
      annotationMethodHandler.handleMessage(unsubscribeMessage);
    }
    annotationMethodHandler.unregisterSessionFromAllPrefixCurie(sessionId);
  }
View Full Code Here


    case SUBSCRIBE:
      SubscribeMessage subscribeMessage = (SubscribeMessage) message;
      handlePubSubMessage(subscribeMessage, null, subscribeMessage.getTopicURI(), subscribeMethods);
      break;
    case UNSUBSCRIBE:
      UnsubscribeMessage unsubscribeMessage = (UnsubscribeMessage) message;
      handlePubSubMessage(unsubscribeMessage, null, unsubscribeMessage.getTopicURI(), unsubscribeMethods);
      break;
    case PREFIX:
      PrefixMessage prefixMessage = (PrefixMessage) message;
      handlePrefixMessage(prefixMessage);
      break;
View Full Code Here

TOP

Related Classes of ch.rasc.wampspring.message.UnsubscribeMessage

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.