|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.webbitserver.netty.AbstractHttpConnection
org.webbitserver.netty.NettyWebSocketConnection
public class NettyWebSocketConnection
| Constructor Summary | |
|---|---|
NettyWebSocketConnection(Executor executor,
NettyHttpRequest nettyHttpRequest,
org.jboss.netty.channel.ChannelHandlerContext ctx,
byte[] outboundMaskingKey)
|
|
| Method Summary | |
|---|---|
NettyWebSocketConnection |
close()
|
NettyWebSocketConnection |
data(String key,
Object value)
Store data value by key. |
NettyWebSocketConnection |
ping(byte[] message)
Sends a ping frame |
NettyWebSocketConnection |
pong(byte[] message)
Sends a pong frame |
NettyWebSocketConnection |
send(byte[] message)
Sends a binary frame |
NettyWebSocketConnection |
send(byte[] message,
int offset,
int length)
Sends a binary frame |
NettyWebSocketConnection |
send(String message)
Sends a text frame |
void |
setHybiWebSocketVersion(int webSocketVersion)
|
String |
version()
|
| Methods inherited from class org.webbitserver.netty.AbstractHttpConnection |
|---|
closeChannel, data, data, dataKeys, execute, handlerExecutor, httpRequest, putData, writeMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.webbitserver.HttpConnection |
|---|
handlerExecutor, httpRequest |
| Methods inherited from interface java.util.concurrent.Executor |
|---|
execute |
| Methods inherited from interface org.webbitserver.DataHolder |
|---|
data, data, dataKeys |
| Constructor Detail |
|---|
public NettyWebSocketConnection(Executor executor,
NettyHttpRequest nettyHttpRequest,
org.jboss.netty.channel.ChannelHandlerContext ctx,
byte[] outboundMaskingKey)
| Method Detail |
|---|
public NettyWebSocketConnection send(String message)
WebSocketConnection
send in interface WebSocketConnectionmessage - frame payload
public NettyWebSocketConnection send(byte[] message)
WebSocketConnection
send in interface WebSocketConnectionmessage - frame payload
public NettyWebSocketConnection 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 NettyWebSocketConnection ping(byte[] message)
WebSocketConnection
ping in interface WebSocketConnectionmessage - the payload of the ping
public NettyWebSocketConnection pong(byte[] message)
WebSocketConnection
pong in interface WebSocketConnectionmessage - the payload of the ping
public NettyWebSocketConnection close()
close in interface HttpConnectionclose in interface WebSocketConnection
public NettyWebSocketConnection data(String key,
Object value)
DataHolder
data in interface DataHolderdata in interface WebSocketConnectionDataHolder.data()public String version()
version in interface WebSocketConnectionpublic void setHybiWebSocketVersion(int webSocketVersion)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||