Package org.springframework.messaging.simp.stomp

Examples of org.springframework.messaging.simp.stomp.StompDecoder


    // Check CONNECTED reply

    assertEquals(1, this.session.getSentMessages().size());
    TextMessage textMessage = (TextMessage) this.session.getSentMessages().get(0);

    List<Message<byte[]>> messages = new StompDecoder().decode(ByteBuffer.wrap(textMessage.getPayload().getBytes()));
    assertEquals(1, messages.size());
    StompHeaderAccessor replyHeaders = StompHeaderAccessor.wrap(messages.get(0));

    assertEquals(StompCommand.CONNECTED, replyHeaders.getCommand());
    assertEquals("1.1", replyHeaders.getVersion());
View Full Code Here

TOP

Related Classes of org.springframework.messaging.simp.stomp.StompDecoder

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.