Package org.eclipse.jetty.websocket.api
Class CloseStatus
- java.lang.Object
-
- org.eclipse.jetty.websocket.api.CloseStatus
-
public class CloseStatus extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_REASON_PHRASE
-
Constructor Summary
Constructors Constructor Description CloseStatus(int closeCode, java.lang.String reasonPhrase)
Creates a reason for closing a web socket connection with the given code and reason phrase.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
java.lang.String
getPhrase()
-
-
-
Field Detail
-
MAX_REASON_PHRASE
public static final int MAX_REASON_PHRASE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloseStatus
public CloseStatus(int closeCode, java.lang.String reasonPhrase)
Creates a reason for closing a web socket connection with the given code and reason phrase.- Parameters:
closeCode
- the close codereasonPhrase
- the reason phrase- See Also:
StatusCode
-
-