public class WebSocketDraft76 extends WebSocketBase
bufferSize, closeLatch, connectionReadTimeout, connectionTimeout, downstreamBuffer, endpointAddress, executorService, handler, handshakeLatch, location, origin, path, pipeline, protocols, proxy, quit, requestHeader, responseHeader, responseStatus, selector, serverProtocols, socket, sslHandshake, state, upstreamBuffer, upstreamQueue, useSsl| Constructor and Description |
|---|
WebSocketDraft76(String url,
Proxy proxy,
WebSocketHandler handler,
String... protocols)
Instantiates a new web socket draft76.
|
WebSocketDraft76(String url,
WebSocketHandler handler,
String... protocols)
Instantiates a new web socket draft76.
|
| Modifier and Type | Method and Description |
|---|---|
Frame |
createFrame(byte[] bytes)
Creates the frame.
|
Frame |
createFrame(String str)
Creates the frame.
|
protected int |
getWebSocketVersion()
Gets the web socket version.
|
protected void |
initializePipeline(WebSocketPipeline pipeline)
Initialize pipeline.
|
protected FrameParser |
newFrameParserInstance()
New frame parser instance.
|
protected Handshake |
newHandshakeInstance()
New handshake instance.
|
addHeader, awaitClose, awaitTermination, close, closeWebSocket, connect, createFrame, createFrame, createSocket, getBufferSize, getConnectionReadTimeout, getConnectionTimeout, getEndpoint, getFrameParser, getHandshake, getLocation, getOrigin, getPacketDumpMode, getPath, getProtocols, getRequestHeader, getResponseHeader, getResponseStatus, getServerProtocols, init, initializePipeline, initializeProperties, isBlockingMode, isConnected, join, join, join, processBuffer, read, send, send, send, send, send, setBlockingMode, setConnectionReadTimeout, setConnectionTimeout, setOrigin, setPacketDumpMode, setServerProtocols, state, transitionTopublic WebSocketDraft76(String url, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionpublic WebSocketDraft76(String url, Proxy proxy, WebSocketHandler handler, String... protocols) throws WebSocketException
url - the urlproxy - the proxyhandler - the handlerprotocols - the protocolsWebSocketException - the web socket exceptionprotected Handshake newHandshakeInstance()
WebSocketBasenewHandshakeInstance in class WebSocketBaseprotected int getWebSocketVersion()
WebSocketBasegetWebSocketVersion in class WebSocketBasepublic Frame createFrame(byte[] bytes) throws WebSocketException
WebSocketcreateFrame in interface WebSocketcreateFrame in class WebSocketBasebytes - the byte arrayWebSocketException - the web socket exceptionpublic Frame createFrame(String str) throws WebSocketException
WebSocketcreateFrame in interface WebSocketcreateFrame in class WebSocketBasestr - the strWebSocketException - the web socket exceptionprotected FrameParser newFrameParserInstance()
WebSocketBasenewFrameParserInstance in class WebSocketBaseprotected void initializePipeline(WebSocketPipeline pipeline) throws WebSocketException
WebSocketBaseinitializePipeline in class WebSocketBasepipeline - the pipelineWebSocketException - the web socket exceptionCopyright © 2021. All rights reserved.