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| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 WebSocketBaseprotected int getWebSocketVersion()
WebSocketBasegetWebSocketVersion 在类中 WebSocketBasepublic Frame createFrame(byte[] bytes) throws WebSocketException
WebSocketcreateFrame 在接口中 WebSocketcreateFrame 在类中 WebSocketBasebytes - the byte arrayWebSocketException - the web socket exceptionpublic Frame createFrame(String str) throws WebSocketException
WebSocketcreateFrame 在接口中 WebSocketcreateFrame 在类中 WebSocketBasestr - the strWebSocketException - the web socket exceptionprotected FrameParser newFrameParserInstance()
WebSocketBasenewFrameParserInstance 在类中 WebSocketBaseprotected void initializePipeline(WebSocketPipeline pipeline) throws WebSocketException
WebSocketBaseinitializePipeline 在类中 WebSocketBasepipeline - the pipelineWebSocketException - the web socket exceptionCopyright © 2020. All rights reserved.