Class TextWebSocketFrame

    • Constructor Detail

      • TextWebSocketFrame

        public TextWebSocketFrame​(BufferAllocator allocator,
                                  String text)
        Creates a new text frame with the specified text string. The final fragment flag is set to true.
        Parameters:
        allocator - BufferAllocator to use for allocating data.
        text - String to put in the frame.
      • TextWebSocketFrame

        public TextWebSocketFrame​(Buffer 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.
      • TextWebSocketFrame

        public TextWebSocketFrame​(BufferAllocator allocator,
                                  boolean finalFragment,
                                  int rsv,
                                  String text)
        Creates a new text frame with the specified text string. The final fragment flag is set to true.
        Parameters:
        allocator - BufferAllocator to use for allocating data.
        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,
                                  Buffer binaryData)
        Creates a new text frame with the specified binary data and the final fragment flag.
        Parameters:
        finalFragment - flag indicating if this frame is the final fragment
        rsv - reserved bits used for protocol extensions
        binaryData - the content of the frame.