| Package | Description |
|---|---|
| javax.net.websocket | |
| javax.net.websocket.extensions |
| Modifier and Type | Method and Description |
|---|---|
static CloseReason.Code |
CloseReason.Code.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason.Code[] |
CloseReason.Code.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
CloseReason(CloseReason.Code 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 |
|---|---|
CloseReason.Code |
Frame.Control.Close.getCloseCode()
The close code for this close.
|
Copyright © 2012 Oracle and/or its affiliates. All rights reserved.