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
Methods 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
Methods 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
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) Method 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) Constructor 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 with Draft version draft.WebSocketServer
(InetSocketAddress address, List<Draft> drafts)