public class CloseStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_REASON_PHRASE |
Constructor and Description |
---|
CloseStatus(int 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 |
---|---|
int |
getCode() |
java.lang.String |
getPhrase() |
static java.lang.String |
trimMaxReasonLength(java.lang.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, java.lang.String reasonPhrase)
closeCode
- the close codereasonPhrase
- the reason phraseStatusCode
@Deprecated public static java.lang.String trimMaxReasonLength(java.lang.String reason)
reason
- the proposed reason phrasepublic int getCode()
public java.lang.String getPhrase()
Copyright © 2010 - 2019 Adobe. All Rights Reserved