public class CloseReason
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | CloseReason.CloseCodeA marker interface for the close codes. | 
| static class  | CloseReason.CloseCodesAn Enumeration of status codes for a web socket close that are defined in the specification. | 
| Constructor and Description | 
|---|
| CloseReason(CloseReason.CloseCode closeCode,
           java.lang.String reasonPhrase)Creates a reason for closing a web socket connection with the given code and reason phrase. | 
| Modifier and Type | Method and Description | 
|---|---|
| CloseReason.CloseCode | getCloseCode()The Close code associated with this CloseReason. | 
| java.lang.String | getReasonPhrase()The reason phrase associated with this CloseReason. | 
| java.lang.String | toString()Converts the CloseReason to a debug-friendly string. | 
public CloseReason(CloseReason.CloseCode closeCode, java.lang.String reasonPhrase)
closeCode - the close code, may not be nullreasonPhrase - the reason phrase, may be null.public CloseReason.CloseCode getCloseCode()
public java.lang.String getReasonPhrase()
public java.lang.String toString()
toString in class java.lang.Object