public abstract class ActorWSServer
extends org.nustaq.webserver.WebSocketHttpServer
| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENTQ_SIZE |
static int |
MAX_THREADS |
protected AtomicInteger |
sessionid |
| Constructor and Description |
|---|
ActorWSServer(File contentRoot) |
| Modifier and Type | Method and Description |
|---|---|
protected org.nustaq.webserver.ClientSession |
createNewSession() |
protected abstract Class |
getClientActorClazz() |
protected ActorWSClientSession |
getSession(io.netty.channel.ChannelHandlerContext ctx) |
void |
onBinaryMessage(io.netty.channel.ChannelHandlerContext ctx,
byte[] buffer) |
void |
onClose(io.netty.channel.ChannelHandlerContext ctx) |
void |
onHttpRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest req,
org.nustaq.netty2go.NettyWSHttpServer.HttpResponseSender sender) |
void |
onOpen(io.netty.channel.ChannelHandlerContext ctx) |
void |
onPong(io.netty.channel.ChannelHandlerContext ctx) |
void |
onTextMessage(io.netty.channel.ChannelHandlerContext ctx,
String text) |
public static int CLIENTQ_SIZE
public static int MAX_THREADS
protected AtomicInteger sessionid
public ActorWSServer(File contentRoot)
public void onBinaryMessage(io.netty.channel.ChannelHandlerContext ctx,
byte[] buffer)
onBinaryMessage in class org.nustaq.webserver.WebSocketHttpServerpublic void onHttpRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest req,
org.nustaq.netty2go.NettyWSHttpServer.HttpResponseSender sender)
onHttpRequest in class org.nustaq.webserver.WebSocketHttpServerpublic void onOpen(io.netty.channel.ChannelHandlerContext ctx)
onOpen in class org.nustaq.webserver.WebSocketHttpServerpublic void onClose(io.netty.channel.ChannelHandlerContext ctx)
onClose in class org.nustaq.webserver.WebSocketHttpServerpublic void onTextMessage(io.netty.channel.ChannelHandlerContext ctx,
String text)
onTextMessage in class org.nustaq.webserver.WebSocketHttpServerpublic void onPong(io.netty.channel.ChannelHandlerContext ctx)
onPong in class org.nustaq.webserver.WebSocketHttpServerprotected ActorWSClientSession getSession(io.netty.channel.ChannelHandlerContext ctx)
getSession in class org.nustaq.webserver.WebSocketHttpServerprotected org.nustaq.webserver.ClientSession createNewSession()
createNewSession in class org.nustaq.webserver.WebSocketHttpServerprotected abstract Class getClientActorClazz()
Copyright © 2014. All rights reserved.