Uses of Class
org.java_websocket.drafts.Draft
-
Packages that use Draft 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. -
-
Uses of Draft in org.java_websocket
Methods in org.java_websocket that return Draft Modifier and Type Method Description Draft
WebSocket. getDraft()
Getter for the draftDraft
WebSocketImpl. getDraft()
Methods in org.java_websocket with parameters of type Draft Modifier and Type Method Description WebSocket
WebSocketFactory. createWebSocket(WebSocketAdapter a, Draft d)
Create a new Websocket with the provided listener, drafts and socketWebSocketImpl
WebSocketServerFactory. createWebSocket(WebSocketAdapter a, Draft d)
ServerHandshakeBuilder
WebSocketAdapter. onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
This default implementation does not do anything.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.Method parameters in org.java_websocket with type arguments of type Draft Modifier and Type Method Description WebSocket
WebSocketFactory. createWebSocket(WebSocketAdapter a, List<Draft> drafts)
Create a new Websocket with the provided listener, drafts and socketWebSocketImpl
WebSocketServerFactory. createWebSocket(WebSocketAdapter a, List<Draft> drafts)
Constructors in org.java_websocket with parameters of type Draft Constructor Description WebSocketImpl(WebSocketListener listener, Draft draft)
creates a websocket with client roleWebSocketImpl(WebSocketListener listener, Draft draft, Socket socket)
Deprecated.Constructor parameters in org.java_websocket with type arguments of type Draft Constructor Description WebSocketImpl(WebSocketListener listener, List<Draft> drafts)
Creates a websocket with server roleWebSocketImpl(WebSocketListener listener, List<Draft> drafts, Socket socket)
Deprecated. -
Uses of Draft in org.java_websocket.client
Methods in org.java_websocket.client that return Draft Modifier and Type Method Description Draft
WebSocketClient. 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 Draft Constructor 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. -
Uses of Draft in org.java_websocket.drafts
Subclasses of Draft in org.java_websocket.drafts Modifier and Type Class Description class
Draft_6455
Implementation for the RFC 6455 websocket protocol This is the recommended class for your websocket connectionMethods in org.java_websocket.drafts that return Draft Modifier and Type Method Description Draft
Draft_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 Draft Modifier and Type Method Description List<Draft>
WebSocketServer. getDraft()
Methods in org.java_websocket.server with parameters of type Draft Modifier and Type Method Description WebSocketImpl
DefaultSSLWebSocketServerFactory. createWebSocket(WebSocketAdapter a, Draft d)
WebSocketImpl
DefaultWebSocketServerFactory. createWebSocket(WebSocketAdapter a, Draft d)
ServerHandshakeBuilder
WebSocketServer. onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
Method parameters in org.java_websocket.server with type arguments of type Draft Modifier and Type Method Description WebSocketImpl
DefaultSSLWebSocketServerFactory. createWebSocket(WebSocketAdapter a, List<Draft> d)
WebSocketImpl
DefaultWebSocketServerFactory. createWebSocket(WebSocketAdapter a, List<Draft> d)
Constructor parameters in org.java_websocket.server with type arguments of type Draft Constructor 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)
-