| Access | Constructor and Description |
|---|---|
| public | CloseWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.Status code as per RFC 6455. For
example, 1000 indicates normal closure. status)Creates a new empty close frame with closing status code and reason text |
| public | CloseWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.Status code as per RFC 6455. For
example, 1000 indicates normal closure. status, String Reason text. Set to null if no text. reasonText)Creates a new empty close frame with closing status code and reason text |
| public | CloseWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.Integer status code as per RFC 6455. For example, 1000 indicates normal
closure. statusCode, String Reason text. Set to null if no text. reasonText)Creates a new empty close frame with closing status code and reason text |
| public | CloseWebSocketFrame(BufferAllocator
BufferAllocator to use for allocating data.flag indicating if this frame is the final fragment finalFragment, int reserved bits used for protocol extensions. rsv)Creates a new close frame with no losing status code and no reason text |
| public | CloseWebSocketFrame(BufferAllocator allocator, boolean
flag indicating if this frame is the final fragment finalFragment, int reserved bits used for protocol extensions rsv, int Integer status code as per RFC 6455. For example, 1000 indicates normal
closure. statusCode, String Reason text. Set to null if no text. reasonText)Creates a new close frame with closing status code and reason text |
| public | CloseWebSocketFrame(boolean
flag indicating if this frame is the final fragment finalFragment, int reserved bits used for protocol extensions rsv, Buffer the content of the frame. Must be 2 byte integer followed by optional UTF-8 encoded string. binaryData)Creates a new close frame |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Buffer | |
| public String | reasonText()
Returns the reason text as per RFC 6455 If a reason text is not supplied, an empty string is returned. |
| protected WebSocketFrame | receive(Buffer
The buf)Buffer that is received by the recipient,
and needs to be wrapped in a new BufferHolder instance.Implements abstract io. BufferHolder is received by the recipient.
|
| pack-priv static short | |
| public int |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(BufferAllocator allocator, WebSocketCloseStatus status) Creates a new empty close frame with closing status code and reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(BufferAllocator allocator, WebSocketCloseStatus status, String reasonText) Creates a new empty close frame with closing status code and reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(BufferAllocator allocator, int statusCode, String reasonText) Creates a new empty close frame with closing status code and reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv) Creates a new close frame with no losing status code and no reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(BufferAllocator allocator, boolean finalFragment, int rsv, int statusCode, String reasonText) Creates a new close frame with closing status code and reason text | |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData) Creates a new close frame
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| private CloseWebSocketFrame(CloseWebSocketFrame copyFrom, Buffer data) | |
| newBinaryData | back to summary |
|---|---|
| private static Buffer newBinaryData(BufferAllocator allocator, short statusCode, String reasonText) | |
| reasonText | back to summary |
|---|---|
| public String reasonText() Returns the reason text as per RFC 6455 If a reason text is not supplied, an empty string is returned. | |
| receive | back to summary |
|---|---|
| protected WebSocketFrame receive(Buffer buf) Implements abstract io. Doc from io. Called when a sent
| |
| requireValidStatusCode | back to summary |
|---|---|
| pack-priv static short requireValidStatusCode(int statusCode) | |
| statusCode | back to summary |
|---|---|
| public int statusCode() Returns the closing status code as per RFC 6455. If a status code is set, -1 is returned. | |