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.
|
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 Webtide. All Rights Reserved.