Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.client.protocol
Class AbstractClientHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
AbstractClientHandler(ClientContext clientContext)
           
 
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
 

Constructor Detail

AbstractClientHandler

public AbstractClientHandler(ClientContext clientContext)
Method Detail

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

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.