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
Fields in org.java_websocket declared as Draft Modifier and Type Field Description private Draft
WebSocketImpl. draft
The draft which is used by this websocketFields in org.java_websocket with type parameters of type Draft Modifier and Type Field Description private java.util.List<Draft>
WebSocketImpl. knownDrafts
A list of drafts available for this websocketMethods 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, java.util.List<Draft> drafts)
Create a new Websocket with the provided listener, drafts and socketWebSocketImpl
WebSocketServerFactory. createWebSocket(WebSocketAdapter a, java.util.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 roleConstructor parameters in org.java_websocket with type arguments of type Draft Constructor Description WebSocketImpl(WebSocketListener listener, java.util.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 Draft Modifier and Type Field Description private Draft
WebSocketClient. draft
The draft to useMethods 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(java.net.URI serverUri, Draft protocolDraft)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.WebSocketClient(java.net.URI serverUri, Draft protocolDraft, java.util.Map<java.lang.String,java.lang.String> httpHeaders)
Constructs a WebSocketClient instance and sets it to the connect to the specified URI.WebSocketClient(java.net.URI serverUri, Draft protocolDraft, java.util.Map<java.lang.String,java.lang.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
Fields in org.java_websocket.server with type parameters of type Draft Modifier and Type Field Description private java.util.List<Draft>
WebSocketServer. 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 Draft Modifier and Type Method Description java.util.List<Draft>
WebSocketServer. getDraft()
Get the list of active draftsMethods 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)
private void
WebSocketServer. fillFrames(Draft draft, java.util.Map<Draft,java.util.List<Framedata>> draftFrames, java.lang.String strData, java.nio.ByteBuffer byteData)
Fills the draftFrames with new data for the broadcastMethod parameters in org.java_websocket.server with type arguments of type Draft Modifier and Type Method Description WebSocketImpl
DefaultSSLWebSocketServerFactory. createWebSocket(WebSocketAdapter a, java.util.List<Draft> d)
WebSocketImpl
DefaultWebSocketServerFactory. createWebSocket(WebSocketAdapter a, java.util.List<Draft> d)
private void
WebSocketServer. fillFrames(Draft draft, java.util.Map<Draft,java.util.List<Framedata>> draftFrames, java.lang.String strData, java.nio.ByteBuffer byteData)
Fills the draftFrames with new data for the broadcastConstructor parameters in org.java_websocket.server with type arguments of type Draft Constructor Description WebSocketServer(java.net.InetSocketAddress address, int decodercount, java.util.List<Draft> drafts)
WebSocketServer(java.net.InetSocketAddress address, int decodercount, java.util.List<Draft> drafts, java.util.Collection<WebSocket> connectionscontainer)
Creates a WebSocketServer that will attempt to bind/listen on the given address, and comply with Draft version draft.WebSocketServer(java.net.InetSocketAddress address, java.util.List<Draft> drafts)
-