|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 WebSocket 的软件包 | |
|---|---|
| org.eclipse.jetty.websocket | |
| org.eclipse.jetty.websocket 中 WebSocket 的使用 |
|---|
| org.eclipse.jetty.websocket 中 WebSocket 的子接口 | |
|---|---|
static interface |
WebSocket.OnBinaryMessage
A nested WebSocket interface for receiving binary messages |
static interface |
WebSocket.OnControl
A nested WebSocket interface for receiving control messages |
static interface |
WebSocket.OnFrame
A nested WebSocket interface for receiving any websocket frame |
static interface |
WebSocket.OnTextMessage
A nested WebSocket interface for receiving text messages |
| 返回 WebSocket 的 org.eclipse.jetty.websocket 中的方法 | |
|---|---|
WebSocket |
WebSocketFactory.Acceptor.doWebSocketConnect(HttpServletRequest request,
String protocol)
Factory method that applications needs to implement to return a WebSocket object. |
| 参数类型为 WebSocket 的 org.eclipse.jetty.websocket 中的方法 | |
|---|---|
Future<WebSocket.Connection> |
WebSocketClient.open(URI uri,
WebSocket websocket)
Asynchronously opens a websocket connection and returns a Future to obtain the connection. |
WebSocket.Connection |
WebSocketClient.open(URI uri,
WebSocket websocket,
long maxConnectTime,
TimeUnit units)
Opens a websocket connection to the URI and blocks until the connection is accepted or there is an error. |
void |
WebSocketFactory.upgrade(HttpServletRequest request,
HttpServletResponse response,
WebSocket websocket,
String protocol)
Upgrade the request/response to a WebSocket Connection. |
| 参数类型为 WebSocket 的 org.eclipse.jetty.websocket 中的构造方法 | |
|---|---|
WebSocketConnectionD00(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol)
|
|
WebSocketConnectionD06(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol)
|
|
WebSocketConnectionD08(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft)
|
|
WebSocketConnectionD08(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft,
MaskGen maskgen)
|
|
WebSocketConnectionRFC6455(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft)
|
|
WebSocketConnectionRFC6455(WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft,
MaskGen maskgen)
|
|
WebSocketServletConnectionD00(WebSocketFactory factory,
WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol)
|
|
WebSocketServletConnectionD06(WebSocketFactory factory,
WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol)
|
|
WebSocketServletConnectionD08(WebSocketFactory factory,
WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft)
|
|
WebSocketServletConnectionRFC6455(WebSocketFactory factory,
WebSocket websocket,
EndPoint endpoint,
WebSocketBuffers buffers,
long timestamp,
int maxIdleTime,
String protocol,
List<Extension> extensions,
int draft)
|
|
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||