JavaScript is disabled on your browser.
Skip navigation links
io.netty.handler.codec.http.websocketx

Class TextWebSocketFrame

    • Constructor Detail

      • TextWebSocketFrame

        public TextWebSocketFrame()
        Creates a new empty text frame.
      • TextWebSocketFrame

        public TextWebSocketFrame(java.lang.String text)
        Creates a new text frame with the specified text string. The final fragment flag is set to true.
        Parameters:
        text - String to put in the frame
      • TextWebSocketFrame

        public TextWebSocketFrame(ByteBuf binaryData)
        Creates a new text frame with the specified binary data. The final fragment flag is set to true.
        Parameters:
        binaryData - the content of the frame. Must be UTF-8 encoded
      • TextWebSocketFrame

        public TextWebSocketFrame(boolean finalFragment,
         int rsv,
         java.lang.String text)
        Creates a new text frame with the specified text string. The final fragment flag is set to true.
        Parameters:
        finalFragment - flag indicating if this frame is the final fragment
        rsv - reserved bits used for protocol extensions
        text - String to put in the frame
      • TextWebSocketFrame

        public TextWebSocketFrame(boolean finalFragment,
         int rsv,
         ByteBuf binaryData)
        Creates a new text frame with the specified binary data. The final fragment flag is set to true.
        Parameters:
        finalFragment - flag indicating if this frame is the final fragment
        rsv - reserved bits used for protocol extensions
        binaryData - the content of the frame. Must be UTF-8 encoded
Skip navigation links

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /