Package | Description |
---|---|
org.java_websocket | |
org.java_websocket.drafts |
This package encapsulates all implementations in relation with the WebSocket drafts.
|
org.java_websocket.handshake |
This package encapsulates all interfaces and implementations in relation with the WebSocket
handshake.
|
org.java_websocket.server |
This package encapsulates all implementations in relation with the WebSocketServer.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketListener.onWebsocketHandshakeReceivedAsClient(WebSocket conn,
ClientHandshake request,
ServerHandshake response)
Called on the client side when the socket connection is first established, and the
WebSocketImpl handshake response has been received.
|
void |
WebSocketAdapter.onWebsocketHandshakeReceivedAsClient(WebSocket conn,
ClientHandshake request,
ServerHandshake response) |
ServerHandshakeBuilder |
WebSocketListener.onWebsocketHandshakeReceivedAsServer(WebSocket conn,
Draft draft,
ClientHandshake request)
Called on the server side when the socket connection is first established, and the WebSocket
handshake has been received.
|
ServerHandshakeBuilder |
WebSocketAdapter.onWebsocketHandshakeReceivedAsServer(WebSocket conn,
Draft draft,
ClientHandshake request)
This default implementation does not do anything.
|
void |
WebSocketListener.onWebsocketHandshakeSentAsClient(WebSocket conn,
ClientHandshake request)
Called on the client side when the socket connection is first established, and the
WebSocketImpl handshake has just been sent.
|
void |
WebSocketAdapter.onWebsocketHandshakeSentAsClient(WebSocket conn,
ClientHandshake request)
This default implementation does not do anything which will cause the connections to always
progress.
|
Modifier and Type | Method and Description |
---|---|
HandshakeState |
Draft_6455.acceptHandshakeAsClient(ClientHandshake request,
ServerHandshake response) |
abstract HandshakeState |
Draft.acceptHandshakeAsClient(ClientHandshake request,
ServerHandshake response) |
HandshakeState |
Draft_6455.acceptHandshakeAsServer(ClientHandshake handshakedata) |
abstract HandshakeState |
Draft.acceptHandshakeAsServer(ClientHandshake handshakedata) |
HandshakeBuilder |
Draft_6455.postProcessHandshakeResponseAsServer(ClientHandshake request,
ServerHandshakeBuilder response) |
abstract HandshakeBuilder |
Draft.postProcessHandshakeResponseAsServer(ClientHandshake request,
ServerHandshakeBuilder response) |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientHandshakeBuilder
The interface for building a handshake for the client
|
Modifier and Type | Class and Description |
---|---|
class |
HandshakeImpl1Client
Implementation for a client handshake
|
Modifier and Type | Method and Description |
---|---|
abstract void |
WebSocketServer.onOpen(WebSocket conn,
ClientHandshake handshake)
Called after an opening handshake has been performed and the given websocket is ready to be
written on.
|
Copyright © 2021. All rights reserved.