Package org.springframework.web.socket.sockjs

Examples of org.springframework.web.socket.sockjs.SockJsMessageDeliveryException


  public void delegateMessages(String... messages) throws SockJsMessageDeliveryException {
    List<String> undelivered = new ArrayList<String>(Arrays.asList(messages));
    for (String message : messages) {
      try {
        if (isClosed()) {
          throw new SockJsMessageDeliveryException(this.id, undelivered, "Session closed");
        }
        else {
          this.handler.handleMessage(this, new TextMessage(message));
          undelivered.remove(0);
        }
      }
      catch (Throwable ex) {
        throw new SockJsMessageDeliveryException(this.id, undelivered, ex);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.socket.sockjs.SockJsMessageDeliveryException

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.