Example usage for org.springframework.messaging.simp.stomp BufferingStompDecoder BufferingStompDecoder

List of usage examples for org.springframework.messaging.simp.stomp BufferingStompDecoder BufferingStompDecoder

Introduction

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

Prototype

public BufferingStompDecoder(StompDecoder stompDecoder, int bufferSizeLimit) 

Source Link

Document

Create a new BufferingStompDecoder wrapping the given StompDecoder .

Usage

From source file:org.springframework.web.socket.messaging.StompSubProtocolHandler.java

@Override
public void afterSessionStarted(WebSocketSession session, MessageChannel outputChannel) {
    if (session.getTextMessageSizeLimit() < MINIMUM_WEBSOCKET_MESSAGE_SIZE) {
        session.setTextMessageSizeLimit(MINIMUM_WEBSOCKET_MESSAGE_SIZE);
    }/*  w  ww . j a va2 s  . c  o  m*/
    this.decoders.put(session.getId(), new BufferingStompDecoder(this.stompDecoder, getMessageSizeLimit()));
}