org.atmosphere.nettosphere
Class BridgeRuntime
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.atmosphere.nettosphere.HttpStaticFileServerHandler
org.atmosphere.nettosphere.BridgeRuntime
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
public class BridgeRuntime
- extends HttpStaticFileServerHandler
Bridge the Atmosphere Framework with Netty.
- Author:
- Jeanfrancois Arcand
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
|
Method Summary |
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
destroy()
|
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
|
org.atmosphere.cpr.AtmosphereFramework |
framework()
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent)
|
protected void |
sendError(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpResponseStatus status,
org.jboss.netty.channel.MessageEvent e)
|
| Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BridgeRuntime
public BridgeRuntime(Config config)
framework
public org.atmosphere.cpr.AtmosphereFramework framework()
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent)
throws URISyntaxException,
IOException
- Overrides:
messageReceived in class HttpStaticFileServerHandler
- Throws:
URISyntaxException
IOException
sendError
protected void sendError(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.handler.codec.http.HttpResponseStatus status,
org.jboss.netty.channel.MessageEvent e)
- Overrides:
sendError in class HttpStaticFileServerHandler
destroy
public void destroy()
channelClosed
public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws Exception
- Overrides:
channelClosed in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
- Throws:
Exception
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
- Overrides:
exceptionCaught in class HttpStaticFileServerHandler
- Throws:
Exception
Copyright © 2014. All Rights Reserved.