Package | Description |
---|---|
org.java_websocket.drafts |
This package encapsulates all implementations in relation with the WebSocket drafts.
|
org.java_websocket.enums |
This package encapsulates all enums.
|
Modifier and Type | Field and Description |
---|---|
protected Role |
Draft.role
In some cases the handshake will be parsed different depending on whether
|
Modifier and Type | Method and Description |
---|---|
Role |
Draft.getRole() |
Modifier and Type | Method and Description |
---|---|
List<ByteBuffer> |
Draft.createHandshake(Handshakedata handshakedata,
Role ownrole)
Deprecated.
use createHandshake without the role
|
List<ByteBuffer> |
Draft.createHandshake(Handshakedata handshakedata,
Role ownrole,
boolean withcontent)
Deprecated.
use createHandshake without the role since it does not have any effect
|
void |
Draft.setParseMode(Role role) |
static HandshakeBuilder |
Draft.translateHandshakeHttp(ByteBuffer buf,
Role role) |
Modifier and Type | Method and Description |
---|---|
static Role |
Role.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
Role.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2020. All rights reserved.