Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.server.protocol
Class AbstractProviderHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.projectodd.stilts.stomp.server.protocol.AbstractProviderHandler
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
Direct Known Subclasses:
AbstractControlFrameHandler, ReceiptHandler, SendHandler

public abstract class AbstractProviderHandler
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
AbstractProviderHandler(StompProvider provider, ConnectionContext context)
           
 
Method Summary
 void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
           
 ConnectionContext getContext()
           
 StompConnection getStompConnection()
           
 StompProvider getStompProvider()
           
protected  org.jboss.netty.channel.ChannelFuture sendError(org.jboss.netty.channel.ChannelHandlerContext channelContext, String message, StompFrame inReplyTo)
           
protected  void sendErrorAndClose(org.jboss.netty.channel.ChannelHandlerContext channelContext, String message, StompFrame inReplyTo)
           
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

AbstractProviderHandler

public AbstractProviderHandler(StompProvider provider,
                               ConnectionContext context)
Method Detail

getStompProvider

public StompProvider getStompProvider()

getContext

public ConnectionContext getContext()

getStompConnection

public StompConnection getStompConnection()

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,
                                                          StompFrame inReplyTo)

sendErrorAndClose

protected void sendErrorAndClose(org.jboss.netty.channel.ChannelHandlerContext channelContext,
                                 String message,
                                 StompFrame inReplyTo)

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.