| 程序包 | 说明 |
|---|---|
| org.cauli.server | |
| org.cauli.server.handler | |
| org.cauli.server.handler.logging | |
| org.cauli.server.netty | |
| org.cauli.server.stub | |
| org.cauli.server.wrapper |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnection |
WebSocketConnection.close() |
WebSocketConnection |
WebSocketConnection.data(String key,
Object value) |
WebSocketConnection |
WebSocketConnection.ping(byte[] message)
Sends a ping frame
|
WebSocketConnection |
WebSocketConnection.pong(byte[] message)
Sends a pong frame
|
WebSocketConnection |
WebSocketConnection.send(byte[] message)
Sends a binary frame
|
WebSocketConnection |
WebSocketConnection.send(byte[] message,
int offset,
int length)
Sends a binary frame
|
WebSocketConnection |
WebSocketConnection.send(String message)
Sends a text frame
|
WebSocketConnection |
HttpControl.upgradeToWebSocketConnection(WebSocketHandler handler) |
WebSocketConnection |
HttpControl.webSocketConnection() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WebSocketHandler.onClose(WebSocketConnection connection)
Called when a connection is closed.
|
void |
BaseWebSocketHandler.onClose(WebSocketConnection connection) |
void |
WebSocketHandler.onMessage(WebSocketConnection connection,
byte[] msg) |
void |
BaseWebSocketHandler.onMessage(WebSocketConnection connection,
byte[] msg) |
void |
WebSocketHandler.onMessage(WebSocketConnection connection,
String msg) |
void |
BaseWebSocketHandler.onMessage(WebSocketConnection connection,
String msg) |
void |
WebSocketHandler.onOpen(WebSocketConnection connection) |
void |
BaseWebSocketHandler.onOpen(WebSocketConnection connection) |
void |
WebSocketHandler.onPing(WebSocketConnection connection,
byte[] msg) |
void |
BaseWebSocketHandler.onPing(WebSocketConnection connection,
byte[] msg) |
void |
WebSocketHandler.onPong(WebSocketConnection connection,
byte[] msg) |
void |
BaseWebSocketHandler.onPong(WebSocketConnection connection,
byte[] msg) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ReconnectingWebSocketHandler.onClose(WebSocketConnection connection) |
void |
ReconnectingWebSocketHandler.onMessage(WebSocketConnection connection,
byte[] msg) |
void |
ReconnectingWebSocketHandler.onMessage(WebSocketConnection connection,
String msg) |
void |
ReconnectingWebSocketHandler.onOpen(WebSocketConnection connection) |
void |
ReconnectingWebSocketHandler.onPing(WebSocketConnection connection,
byte[] msg) |
void |
ReconnectingWebSocketHandler.onPong(WebSocketConnection connection,
byte[] msg) |
| 限定符和类型 | 类和说明 |
|---|---|
(专用程序包) class |
LoggingWebSocketConnection |
| 限定符和类型 | 字段和说明 |
|---|---|
private WebSocketConnection |
LoggingWebSocketHandler.loggingConnection |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
LoggingWebSocketHandler.onClose(WebSocketConnection connection) |
void |
LoggingWebSocketHandler.onMessage(WebSocketConnection connection,
byte[] message) |
void |
LoggingWebSocketHandler.onMessage(WebSocketConnection connection,
String message) |
void |
LoggingWebSocketHandler.onOpen(WebSocketConnection connection) |
void |
LoggingWebSocketHandler.onPing(WebSocketConnection connection,
byte[] message) |
void |
LoggingWebSocketHandler.onPong(WebSocketConnection connection,
byte[] message) |
void |
SimpleLogSink.webSocketConnectionClose(WebSocketConnection connection) |
void |
LogSink.webSocketConnectionClose(WebSocketConnection connection) |
void |
SimpleLogSink.webSocketConnectionOpen(WebSocketConnection connection) |
void |
LogSink.webSocketConnectionOpen(WebSocketConnection connection) |
void |
SimpleLogSink.webSocketInboundData(WebSocketConnection connection,
byte[] data) |
void |
LogSink.webSocketInboundData(WebSocketConnection connection,
byte[] message) |
void |
SimpleLogSink.webSocketInboundData(WebSocketConnection connection,
String data) |
void |
LogSink.webSocketInboundData(WebSocketConnection connection,
String data) |
void |
SimpleLogSink.webSocketInboundPing(WebSocketConnection connection,
byte[] msg) |
void |
LogSink.webSocketInboundPing(WebSocketConnection connection,
byte[] msg) |
void |
SimpleLogSink.webSocketInboundPong(WebSocketConnection connection,
byte[] msg) |
void |
LogSink.webSocketInboundPong(WebSocketConnection connection,
byte[] msg) |
void |
SimpleLogSink.webSocketOutboundData(WebSocketConnection connection,
byte[] data) |
void |
LogSink.webSocketOutboundData(WebSocketConnection connection,
byte[] data) |
void |
SimpleLogSink.webSocketOutboundData(WebSocketConnection connection,
String data) |
void |
LogSink.webSocketOutboundData(WebSocketConnection connection,
String data) |
void |
SimpleLogSink.webSocketOutboundPing(WebSocketConnection connection,
byte[] msg) |
void |
LogSink.webSocketOutboundPing(WebSocketConnection connection,
byte[] msg) |
void |
SimpleLogSink.webSocketOutboundPong(WebSocketConnection connection,
byte[] msg) |
void |
LogSink.webSocketOutboundPong(WebSocketConnection connection,
byte[] msg) |
| 构造器和说明 |
|---|
LoggingWebSocketConnection(LogSink logSink,
WebSocketConnection connection) |
LoggingWebSocketHandler(LogSink logSink,
WebSocketConnection loggingConnection,
WebSocketHandler handler) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
NettyWebSocketConnection |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnection |
NettyHttpControl.upgradeToWebSocketConnection(WebSocketHandler webSocketHandler) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
StubConnection
Implementation of
EventSourceConnection and WebSocketConnection that is easy to construct and
makes it easy to inspect results. |
| 限定符和类型 | 字段和说明 |
|---|---|
private WebSocketConnection |
StubHttpControl.webSocketConnection |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnection |
StubHttpControl.upgradeToWebSocketConnection(WebSocketHandler handler) |
WebSocketConnection |
StubHttpControl.webSocketConnection() |
| 限定符和类型 | 方法和说明 |
|---|---|
StubHttpControl |
StubHttpControl.webSocketConnection(WebSocketConnection connection) |
| 构造器和说明 |
|---|
StubHttpControl(HttpRequest request,
HttpResponse response,
WebSocketConnection connection) |
StubHttpControl(WebSocketConnection connection) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
WebSocketConnectionWrapper |
| 限定符和类型 | 字段和说明 |
|---|---|
private WebSocketConnection |
WebSocketConnectionWrapper.connection |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnection |
WebSocketConnectionWrapper.originalControl() |
WebSocketConnection |
WebSocketConnectionWrapper.underlyingControl() |
WebSocketConnection |
HttpControlWrapper.upgradeToWebSocketConnection(WebSocketHandler handler) |
WebSocketConnection |
HttpControlWrapper.webSocketConnection() |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnectionWrapper |
WebSocketConnectionWrapper.underlyingControl(WebSocketConnection control) |
| 构造器和说明 |
|---|
WebSocketConnectionWrapper(WebSocketConnection connection) |
Copyright © 2014. All rights reserved.