Example usage for io.netty.handler.codec.http.websocketx ContinuationWebSocketFrame text

List of usage examples for io.netty.handler.codec.http.websocketx ContinuationWebSocketFrame text

Introduction

In this page you can find the example usage for io.netty.handler.codec.http.websocketx ContinuationWebSocketFrame text.

Prototype

public String text() 

Source Link

Document

Returns the text data in this frame.

Usage

From source file:org.robotbrains.support.web.server.netty.NettyWebServerWebSocketConnection.java

License:Apache License

/**
 * Handle continuation frame data.//from  w  w  w. j av  a  2s  .c  om
 *
 * @param frame
 *          the continuation frame
 */
private void handleContinuationFrameData(ContinuationWebSocketFrame frame) {
    // All data coming in from the first text frame that was marked non final.
    continuationFrameData.append(frame.text());
    if (frame.isFinalFragment()) {
        handleTextData(continuationFrameData.toString());
        continuationFrameData.setLength(0);
    }
}