|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.webbitserver.wrapper.WebSocketConnectionWrapper
public class WebSocketConnectionWrapper
| Constructor Summary | |
|---|---|
WebSocketConnectionWrapper(WebSocketConnection connection)
|
|
| Method Summary | |
|---|---|
WebSocketConnectionWrapper |
close()
|
Map<String,Object> |
data()
Arbitrary data that can be stored for the lifetime of the connection. |
Object |
data(String key)
Retrieve data value by key. |
WebSocketConnectionWrapper |
data(String key,
Object value)
Store data value by key. |
Set<String> |
dataKeys()
List data keys. |
void |
execute(Runnable command)
|
Executor |
handlerExecutor()
|
HttpRequest |
httpRequest()
|
WebSocketConnection |
originalControl()
|
WebSocketConnectionWrapper |
ping(byte[] msg)
Sends a ping frame |
WebSocketConnectionWrapper |
pong(byte[] msg)
Sends a pong frame |
WebSocketConnectionWrapper |
send(byte[] message)
Sends a binary frame |
WebSocketConnectionWrapper |
send(byte[] message,
int offset,
int length)
Sends a binary frame |
WebSocketConnectionWrapper |
send(String message)
Sends a text frame |
WebSocketConnection |
underlyingControl()
|
WebSocketConnectionWrapper |
underlyingControl(WebSocketConnection control)
|
String |
version()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketConnectionWrapper(WebSocketConnection connection)
| Method Detail |
|---|
public WebSocketConnection underlyingControl()
public WebSocketConnectionWrapper underlyingControl(WebSocketConnection control)
public WebSocketConnection originalControl()
public HttpRequest httpRequest()
httpRequest in interface HttpConnectionpublic WebSocketConnectionWrapper send(String message)
WebSocketConnection
send in interface WebSocketConnectionmessage - frame payload
public WebSocketConnectionWrapper send(byte[] message)
WebSocketConnection
send in interface WebSocketConnectionmessage - frame payload
public WebSocketConnectionWrapper ping(byte[] msg)
WebSocketConnection
ping in interface WebSocketConnectionmsg - the payload of the ping
public WebSocketConnectionWrapper send(byte[] message,
int offset,
int length)
WebSocketConnection
send in interface WebSocketConnectionmessage - frame payloadoffset - The offset within the array of the first byte to be written; must be non-negative and no larger than message.lengthlength - The maximum number of bytes to be written to the given array; must be non-negative and no larger than message.length - offset
public WebSocketConnectionWrapper pong(byte[] msg)
WebSocketConnection
pong in interface WebSocketConnectionmsg - the payload of the ping
public WebSocketConnectionWrapper close()
close in interface HttpConnectionclose in interface WebSocketConnectionpublic Map<String,Object> data()
DataHolder
data in interface DataHolderpublic Object data(String key)
DataHolder
data in interface DataHolderDataHolder.data()
public WebSocketConnectionWrapper data(String key,
Object value)
DataHolder
data in interface DataHolderdata in interface WebSocketConnectionDataHolder.data()public Set<String> dataKeys()
DataHolder
dataKeys in interface DataHolderDataHolder.data()public Executor handlerExecutor()
handlerExecutor in interface HttpConnectionpublic String version()
version in interface WebSocketConnectionpublic void execute(Runnable command)
execute in interface Executor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||