public class CloseStatus extends Object
| 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)
Convenience method for trimming a long reason phrase at the maximum reason phrase length.
|
public CloseStatus(int closeCode,
String reasonPhrase)
closeCode - the close codereasonPhrase - the reason phraseStatusCodepublic static String trimMaxReasonLength(String reason)
reason - the proposed reason phrasepublic int getCode()
public String getPhrase()
Copyright © 1995–2015 Mort Bay Consulting. All rights reserved.