Package | Description |
---|---|
org.java_websocket | |
org.java_websocket.client |
This package encapsulates all implementations in relation with the WebSocketClient.
|
org.java_websocket.drafts |
This package encapsulates all implementations in relation with the WebSocket drafts.
|
org.java_websocket.server |
This package encapsulates all implementations in relation with the WebSocketServer.
|
Modifier and Type | Method and Description |
---|---|
Draft |
WebSocketImpl.getDraft() |
Draft |
WebSocket.getDraft()
Getter for the draft
|
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
WebSocketServerFactory.createWebSocket(WebSocketAdapter a,
Draft d) |
WebSocket |
WebSocketFactory.createWebSocket(WebSocketAdapter a,
Draft d)
Create a new Websocket with the provided listener, drafts and socket
|
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.
|
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
WebSocketServerFactory.createWebSocket(WebSocketAdapter a,
List<Draft> drafts) |
WebSocket |
WebSocketFactory.createWebSocket(WebSocketAdapter a,
List<Draft> drafts)
Create a new Websocket with the provided listener, drafts and socket
|
Constructor and Description |
---|
WebSocketImpl(WebSocketListener listener,
Draft draft)
creates a websocket with client role
|
Constructor and Description |
---|
WebSocketImpl(WebSocketListener listener,
List<Draft> drafts)
Creates a websocket with server role
|
Modifier and Type | Method and Description |
---|---|
Draft |
WebSocketClient.getDraft()
Returns the protocol version this channel uses.
|
Constructor and Description |
---|
WebSocketClient(URI serverUri,
Draft protocolDraft)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.
|
WebSocketClient(URI serverUri,
Draft protocolDraft,
Map<String,String> httpHeaders)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.
|
WebSocketClient(URI serverUri,
Draft protocolDraft,
Map<String,String> httpHeaders,
int connectTimeout)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.
|
Modifier and Type | Class and Description |
---|---|
class |
Draft_6455
Implementation for the RFC 6455 websocket protocol This is the recommended class for your
websocket connection
|
Modifier and Type | Method and Description |
---|---|
Draft |
Draft_6455.copyInstance() |
abstract Draft |
Draft.copyInstance()
Drafts must only be by one websocket at all.
|
Modifier and Type | Method and Description |
---|---|
List<Draft> |
WebSocketServer.getDraft()
Get the list of active drafts
|
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
DefaultWebSocketServerFactory.createWebSocket(WebSocketAdapter a,
Draft d) |
WebSocketImpl |
DefaultSSLWebSocketServerFactory.createWebSocket(WebSocketAdapter a,
Draft d) |
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
DefaultWebSocketServerFactory.createWebSocket(WebSocketAdapter a,
List<Draft> d) |
WebSocketImpl |
DefaultSSLWebSocketServerFactory.createWebSocket(WebSocketAdapter a,
List<Draft> d) |
Constructor and Description |
---|
WebSocketServer(InetSocketAddress address,
int decodercount,
List<Draft> drafts) |
WebSocketServer(InetSocketAddress address,
int decodercount,
List<Draft> drafts,
Collection<WebSocket> connectionscontainer)
Creates a WebSocketServer that will attempt to bind/listen on the given address, and
comply with Draft version draft.
|
WebSocketServer(InetSocketAddress address,
List<Draft> drafts) |
Copyright © 2021. All rights reserved.