public class CloseStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_REASON_PHRASE |
| Constructor and Description |
|---|
CloseStatus(int closeCode,
String reasonPhrase)
Creates a reason for closing a web socket connection with the given code and reason phrase.
|
public static final int MAX_REASON_PHRASE
public CloseStatus(int closeCode,
String reasonPhrase)
closeCode - the close codereasonPhrase - the reason phraseStatusCode@Deprecated public static String trimMaxReasonLength(String reason)
reason - the proposed reason phrasepublic int getCode()
public String getPhrase()
Copyright © 1995-2015 Webtide. All Rights Reserved.