Package | Description |
---|---|
java.net.http |
High level HTTP and WebSocket API
|
Modifier and Type | Method | Description |
---|---|---|
static WebSocket.MessagePart |
WebSocket.MessagePart.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static WebSocket.MessagePart[] |
WebSocket.MessagePart.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
default CompletionStage<?> |
WebSocket.Listener.onBinary(WebSocket webSocket,
ByteBuffer message,
WebSocket.MessagePart part) |
Receives a Binary message.
|
default CompletionStage<?> |
WebSocket.Listener.onText(WebSocket webSocket,
CharSequence message,
WebSocket.MessagePart part) |
Receives a Text message.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b148-1