Uses of Class
org.java_websocket.drafts.Draft
Packages that use Draft
Package
Description
This package encapsulates all implementations in relation with the WebSocketClient.
This package encapsulates all implementations in relation with the WebSocket drafts.
This package encapsulates all implementations in relation with the WebSocketServer.
-
Uses of Draft in org.java_websocket
Fields in org.java_websocket declared as DraftModifier and TypeFieldDescriptionprivate Draft
WebSocketImpl.draft
The draft which is used by this websocketFields in org.java_websocket with type parameters of type DraftModifier and TypeFieldDescriptionWebSocketImpl.knownDrafts
A list of drafts available for this websocketMethods in org.java_websocket that return DraftModifier and TypeMethodDescriptionWebSocket.getDraft()
Getter for the draftWebSocketImpl.getDraft()
Methods in org.java_websocket with parameters of type DraftModifier and TypeMethodDescriptionWebSocketFactory.createWebSocket
(WebSocketAdapter a, Draft d) Create a new Websocket with the provided listener, drafts and socketWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, Draft d) WebSocketAdapter.onWebsocketHandshakeReceivedAsServer
(WebSocket conn, Draft draft, ClientHandshake request) This default implementation does not do anything.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.Method parameters in org.java_websocket with type arguments of type DraftModifier and TypeMethodDescriptionWebSocketFactory.createWebSocket
(WebSocketAdapter a, List<Draft> drafts) Create a new Websocket with the provided listener, drafts and socketWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, List<Draft> drafts) Constructors in org.java_websocket with parameters of type DraftModifierConstructorDescriptionWebSocketImpl
(WebSocketListener listener, Draft draft) creates a websocket with client roleConstructor parameters in org.java_websocket with type arguments of type DraftModifierConstructorDescriptionWebSocketImpl
(WebSocketListener listener, List<Draft> drafts) Creates a websocket with server role -
Uses of Draft in org.java_websocket.client
Fields in org.java_websocket.client declared as DraftMethods in org.java_websocket.client that return DraftModifier and TypeMethodDescriptionWebSocketClient.getDraft()
Returns the protocol version this channel uses.
For more infos see https://github.com/TooTallNate/Java-WebSocket/wiki/DraftsConstructors in org.java_websocket.client with parameters of type DraftModifierConstructorDescriptionWebSocketClient
(URI serverUri, Draft protocolDraft) Constructs a WebSocketClient instance and sets it to the connect to the specified URI.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. -
Uses of Draft in org.java_websocket.drafts
Subclasses of Draft in org.java_websocket.draftsModifier and TypeClassDescriptionclass
Implementation for the RFC 6455 websocket protocol This is the recommended class for your websocket connectionMethods in org.java_websocket.drafts that return DraftModifier and TypeMethodDescriptionDraft_6455.copyInstance()
abstract Draft
Draft.copyInstance()
Drafts must only be by one websocket at all. -
Uses of Draft in org.java_websocket.server
Fields in org.java_websocket.server with type parameters of type DraftModifier and TypeFieldDescriptionWebSocketServer.drafts
The Draft of the WebSocket protocol the Server is adhering to.Methods in org.java_websocket.server that return types with arguments of type DraftMethods in org.java_websocket.server with parameters of type DraftModifier and TypeMethodDescriptionDefaultSSLWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, Draft d) DefaultWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, Draft d) private void
WebSocketServer.fillFrames
(Draft draft, Map<Draft, List<Framedata>> draftFrames, String strData, ByteBuffer byteData) Fills the draftFrames with new data for the broadcastMethod parameters in org.java_websocket.server with type arguments of type DraftModifier and TypeMethodDescriptionDefaultSSLWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, List<Draft> d) DefaultWebSocketServerFactory.createWebSocket
(WebSocketAdapter a, List<Draft> d) private void
WebSocketServer.fillFrames
(Draft draft, Map<Draft, List<Framedata>> draftFrames, String strData, ByteBuffer byteData) Fills the draftFrames with new data for the broadcastConstructor parameters in org.java_websocket.server with type arguments of type DraftModifierConstructorDescriptionWebSocketServer
(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 withDraft
version draft.WebSocketServer
(InetSocketAddress address, List<Draft> drafts)