| Access | Constructor and Description |
|---|---|
| public | |
| public | CloseWebSocketFrame(WebSocketCloseStatus
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(WebSocketCloseStatus
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(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 empty 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)Creates a new close frame with no losing status code and no reason text |
| public | CloseWebSocketFrame(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, ByteBuf the content of the frame. Must be 2 byte integer followed by optional UTF-8 encoded string. binaryData)Creates a new close frame |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame() Creates a new empty close frame. | |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(WebSocketCloseStatus status) Creates a new empty close frame with closing status code and reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(WebSocketCloseStatus status, String reasonText) Creates a new empty close frame with closing status code and reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(int statusCode, String reasonText) Creates a new empty close frame with closing status code and reason text | |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(boolean finalFragment, int rsv) Creates a new close frame with no losing status code and no reason text
| |
| CloseWebSocketFrame | back to summary |
|---|---|
| public CloseWebSocketFrame(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, ByteBuf binaryData) Creates a new close frame
| |
| copy | back to summary |
|---|---|
| public CloseWebSocketFrame copy() Overrides io. Implements io. Doc from io. Creates a deep copy of this
This method calls
| |
| duplicate | back to summary |
|---|---|
| public CloseWebSocketFrame duplicate() Overrides io. Implements io. Doc from io. Duplicates this
This method calls
| |
| newBinaryData | back to summary |
|---|---|
| private static ByteBuf newBinaryData(int 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. | |
| replace | back to summary |
|---|---|
| public CloseWebSocketFrame replace(ByteBuf content) Implements abstract io. Implements io. Doc from io. Returns a new
Override this method to return a new instance of this object whose content is set to the specified
| |
| requireValidStatusCode | back to summary |
|---|---|
| pack-priv static int requireValidStatusCode(int statusCode) | |
| retain | back to summary |
|---|---|
| public CloseWebSocketFrame retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public CloseWebSocketFrame retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public CloseWebSocketFrame retainedDuplicate() Overrides io. Implements io. Doc from io. Duplicates this
This method calls
| |
| 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. | |
| touch | back to summary |
|---|---|
| public CloseWebSocketFrame touch() Overrides io. 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 CloseWebSocketFrame touch(Object hint) Overrides io. 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
| |