public class DefaultToServerHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
GameEvent
s by forwarding message
events to the associated session instance.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private PlayerSession |
playerSession
The player session associated with this stateful business handler.
|
Constructor and Description |
---|
DefaultToServerHandler(PlayerSession playerSession) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
PlayerSession |
getPlayerSession() |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
private static final org.slf4j.Logger LOG
private final PlayerSession playerSession
public DefaultToServerHandler(PlayerSession playerSession)
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws Exception
messageReceived
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e) throws Exception
channelClosed
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
public PlayerSession getPlayerSession()
Copyright © 2013. All Rights Reserved.