WebSocketFrameInternal implementation.
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuf | |
| private boolean | |
| private String | |
| private short | |
| private final boolean | |
| private final WebSocketFrameType |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | WebSocketFrameImpl(WebSocketFrameType type, byte[] utf8TextData, boolean isFinalFrame)
Creates a new raw frame from with the specified encoded content. |
| public | WebSocketFrameImpl(String textData, boolean isFinalFrame)
Creates a new text frame from with the specified string. |
| public | WebSocketFrameImpl(WebSocketFrameType
the type of the frame. type, ByteBuf 0 is the only allowed type currently.the content of the frame. If (type & 0x80 == 0),
it must be encoded in UTF-8. binaryData)Creates a new frame with the specified frame type and the specified data. |
| public | WebSocketFrameImpl(WebSocketFrameType
the type of the frame. type, ByteBuf 0 is the only allowed type currently.the content of the frame. If (type & 0x80 == 0),
it must be encoded in UTF-8. binaryData, boolean If this is the final frame in a sequence isFinalFrame)Creates a new frame with the specified frame type and the specified data. |
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | binaryData()
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static WebSocketFrame | binaryFrame(Buffer
the data for the frame data, boolean true if it's the final frame in the WebSocket message isFinal)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a binary WebSocket frame. |
| private void | |
| public String | |
| public short | |
| public static WebSocketFrame | continuationFrame(Buffer
the data for the frame data, boolean true if it's the final frame in the WebSocket message isFinal)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a continuation frame |
| public ByteBuf | getBinaryData()
Implements io. Returns the content of this frame as-is, with no UTF-8 decoding. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| private void | |
| public static WebSocketFrame | pingFrame(Buffer
the bytes for the frame, may be at most 125 bytes data)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a ping WebSocket frame. |
| public static WebSocketFrame | pongFrame(Buffer
the bytes for the frame, may be at most 125 bytes data)Hides io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Create a pong WebSocket frame. |
| public int | refCnt()
Implements io. Returns the reference count of this object. |
| public boolean | release()
Implements io. Decreases the reference count by |
| public boolean | release(int decrement)
Implements io. Decreases the reference count by the specified |
| public ReferenceCounted | |
| public ReferenceCounted | retain(int increment)
Implements io. Increases the reference count by the specified |
| public void | setBinaryData(ByteBuf
the content of the frame. If (type & 0x80 == 0),
it must be encoded in UTF-8. binaryData)Implements io. Sets the type and the content of this frame. |
| public void | setTextData(String
the content of the frame. Must be valid UTF-8 textData)Implements io. Set the type of the content of this frame and populate it with the given content |
| public String | |
| public static WebSocketFrame | textFrame(String
the string for the frame str, boolean true if it's the final frame in the WebSocket message isFinal)Hides io. Create a text WebSocket frame. |
| public String | |
| public ReferenceCounted | touch()
Implements io. Records the current access location of this object for debugging purposes. |
| public ReferenceCounted | touch(Object hint)
Implements io. Records the current access location of this object with an additional arbitrary information for debugging purposes. |
| public WebSocketFrameType |
| binaryData | back to summary |
|---|---|
| private ByteBuf binaryData | |
| closeParsed | back to summary |
|---|---|
| private boolean closeParsed | |
| closeReason | back to summary |
|---|---|
| private String closeReason | |
| closeStatusCode | back to summary |
|---|---|
| private short closeStatusCode | |
| isFinalFrame | back to summary |
|---|---|
| private final boolean isFinalFrame | |
| type | back to summary |
|---|---|
| private final WebSocketFrameType type | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl() Creates a new empty text frame. | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(WebSocketFrameType frameType) Creates a new empty text frame. | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(String textData) Creates a new text frame from with the specified string. | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(WebSocketFrameType type, byte[] utf8TextData, boolean isFinalFrame) Creates a new raw frame from with the specified encoded content. | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(String textData, boolean isFinalFrame) Creates a new text frame from with the specified string. | |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(WebSocketFrameType type, ByteBuf binaryData) Creates a new frame with the specified frame type and the specified data.
| |
| WebSocketFrameImpl | back to summary |
|---|---|
| public WebSocketFrameImpl(WebSocketFrameType type, ByteBuf binaryData, boolean isFinalFrame) Creates a new frame with the specified frame type and the specified data.
| |
| binaryData | back to summary |
|---|---|
| public Buffer binaryData() Implements io. References Deprecated
See corresponding docs for further information.
| |
| binaryFrame | back to summary |
|---|---|
| public static WebSocketFrame binaryFrame(Buffer data, boolean isFinal) Hides io. Doc from io. References Deprecated
See corresponding docs for further information. Create a binary WebSocket frame.
| |
| checkClose | back to summary |
|---|---|
| private void checkClose() | |
| closeReason | back to summary |
|---|---|
| public String closeReason() Implements io.
| |
| closeStatusCode | back to summary |
|---|---|
| public short closeStatusCode() Implements io.
| |
| continuationFrame | back to summary |
|---|---|
| public static WebSocketFrame continuationFrame(Buffer data, boolean isFinal) Hides io. Doc from io. References Deprecated
See corresponding docs for further information. Create a continuation frame
| |
| getBinaryData | back to summary |
|---|---|
| public ByteBuf getBinaryData() Implements io. Doc from io. Returns the content of this frame as-is, with no UTF-8 decoding. | |
| isBinary | back to summary |
|---|---|
| public boolean isBinary() Implements io.
| |
| isClose | back to summary |
|---|---|
| public boolean isClose() Implements io.
| |
| isContinuation | back to summary |
|---|---|
| public boolean isContinuation() Implements io.
| |
| isFinal | back to summary |
|---|---|
| public boolean isFinal() Implements io.
| |
| isPing | back to summary |
|---|---|
| public boolean isPing() Implements io.
| |
| isText | back to summary |
|---|---|
| public boolean isText() Implements io.
| |
| length | back to summary |
|---|---|
| public int length() Implements io.
| |
| parseCloseFrame | back to summary |
|---|---|
| private void parseCloseFrame() | |
| pingFrame | back to summary |
|---|---|
| public static WebSocketFrame pingFrame(Buffer data) Hides io. Doc from io. References Deprecated
See corresponding docs for further information. Create a ping WebSocket frame. Will be a final frame. There is no option for non final ping frames.
| |
| pongFrame | back to summary |
|---|---|
| public static WebSocketFrame pongFrame(Buffer data) Hides io. Doc from io. References Deprecated
See corresponding docs for further information. Create a pong WebSocket frame. Will be a final frame. There is no option for non final pong frames.
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| retain | back to summary |
|---|---|
| public ReferenceCounted retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public ReferenceCounted retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| setBinaryData | back to summary |
|---|---|
| public void setBinaryData(ByteBuf binaryData) Implements io. Doc from io. Sets the type and the content of this frame.
| |
| setTextData | back to summary |
|---|---|
| public void setTextData(String textData) Implements io. Doc from io. Set the type of the content of this frame and populate it with the given content
| |
| textData | back to summary |
|---|---|
| public String textData() Implements io.
| |
| textFrame | back to summary |
|---|---|
| public static WebSocketFrame textFrame(String str, boolean isFinal) Hides io. Doc from io. Create a text WebSocket frame.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| touch | back to summary |
|---|---|
| public ReferenceCounted touch() Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public ReferenceCounted touch(Object hint) Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |
| type | back to summary |
|---|---|
| public WebSocketFrameType type() Implements io.
| |