org.projectodd.stilts.stomp.client.protocol
Class AbstractClientHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.projectodd.stilts.stomp.client.protocol.AbstractClientHandler
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
- Direct Known Subclasses:
- AbstractClientControlFrameHandler, ClientMessageHandler
public abstract class AbstractClientHandler
- extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
Method Summary |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
|
ClientContext |
getClientContext()
|
protected org.jboss.netty.channel.ChannelFuture |
sendError(org.jboss.netty.channel.ChannelHandlerContext channelContext,
String message)
|
protected void |
sendErrorAndClose(org.jboss.netty.channel.ChannelHandlerContext channelContext,
String message)
|
protected org.jboss.netty.channel.ChannelFuture |
sendFrame(org.jboss.netty.channel.ChannelHandlerContext channelContext,
StompFrame frame)
|
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, messageReceived, writeComplete |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractClientHandler
public AbstractClientHandler(ClientContext clientContext)
getClientContext
public ClientContext getClientContext()
sendFrame
protected org.jboss.netty.channel.ChannelFuture sendFrame(org.jboss.netty.channel.ChannelHandlerContext channelContext,
StompFrame frame)
sendError
protected org.jboss.netty.channel.ChannelFuture sendError(org.jboss.netty.channel.ChannelHandlerContext channelContext,
String message)
sendErrorAndClose
protected void sendErrorAndClose(org.jboss.netty.channel.ChannelHandlerContext channelContext,
String message)
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws Exception
- Overrides:
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
- Throws:
Exception
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.