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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getPhrase() |
static String |
trimMaxReasonLength(String reason)
Deprecated.
use of this method is strongly discouraged, as it creates too many new objects that are just thrown away to accomplish its goals.
|
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 © 2010 - 2020 Adobe. All Rights Reserved