Java io.netty.handler.codec.http.websocketx CloseWebSocketFrame fields, constructors, methods, implement or subclass

Example usage for Java io.netty.handler.codec.http.websocketx CloseWebSocketFrame fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.handler.codec.http.websocketx CloseWebSocketFrame.

The text is from its open source code.

Constructor

CloseWebSocketFrame()
Creates a new empty close frame.
CloseWebSocketFrame(WebSocketCloseStatus status, String reasonText)
Creates a new empty close frame with closing status code and reason text
CloseWebSocketFrame(int statusCode, String reasonText)
Creates a new empty close frame with closing status code and reason text
CloseWebSocketFrame(boolean finalFragment, int rsv)
Creates a new close frame with no losing status code and no reason text
CloseWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData)
Creates a new close frame
CloseWebSocketFrame(boolean finalFragment, int rsv, int statusCode, String reasonText)
Creates a new close frame with closing status code and reason text

Method

StringreasonText()
Returns the reason text as per RFC 6455 If a reason text is not supplied, an empty string is returned.
CloseWebSocketFrameretain()
intstatusCode()
Returns the closing status code as per RFC 6455.