Stilts 0.1.0-SNAPSHOT

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

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.replay.ReplayingDecoder<org.jboss.netty.handler.codec.replay.VoidEnum>
          extended by org.projectodd.stilts.stomp.server.protocol.ProtocolDetector
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class ProtocolDetector
extends org.jboss.netty.handler.codec.replay.ReplayingDecoder<org.jboss.netty.handler.codec.replay.VoidEnum>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
ProtocolDetector(StompProvider provider, Executor executor)
           
 
Method Summary
protected  void appendCommonHandlers(org.jboss.netty.channel.ChannelPipeline pipeline)
           
protected  Object decode(org.jboss.netty.channel.ChannelHandlerContext context, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, org.jboss.netty.handler.codec.replay.VoidEnum state)
           
protected  org.jboss.netty.buffer.ChannelBuffer switchToPureStomp(org.jboss.netty.channel.ChannelHandlerContext context, org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  org.jboss.netty.buffer.ChannelBuffer switchToStompOverWebSockets(org.jboss.netty.channel.ChannelHandlerContext context, org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
Methods inherited from class org.jboss.netty.handler.codec.replay.ReplayingDecoder
actualReadableBytes, channelClosed, channelDisconnected, checkpoint, checkpoint, decodeLast, exceptionCaught, getState, messageReceived, setState
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelConnected, 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
 

Constructor Detail

ProtocolDetector

public ProtocolDetector(StompProvider provider,
                        Executor executor)
Method Detail

decode

protected Object decode(org.jboss.netty.channel.ChannelHandlerContext context,
                        org.jboss.netty.channel.Channel channel,
                        org.jboss.netty.buffer.ChannelBuffer buffer,
                        org.jboss.netty.handler.codec.replay.VoidEnum state)
                 throws Exception
Specified by:
decode in class org.jboss.netty.handler.codec.replay.ReplayingDecoder<org.jboss.netty.handler.codec.replay.VoidEnum>
Throws:
Exception

switchToPureStomp

protected org.jboss.netty.buffer.ChannelBuffer switchToPureStomp(org.jboss.netty.channel.ChannelHandlerContext context,
                                                                 org.jboss.netty.buffer.ChannelBuffer buffer)

switchToStompOverWebSockets

protected org.jboss.netty.buffer.ChannelBuffer switchToStompOverWebSockets(org.jboss.netty.channel.ChannelHandlerContext context,
                                                                           org.jboss.netty.buffer.ChannelBuffer buffer)

appendCommonHandlers

protected void appendCommonHandlers(org.jboss.netty.channel.ChannelPipeline pipeline)

Stilts 0.1.0-SNAPSHOT

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