org.projectodd.stilts.stomp.server.protocol
Class ProtocolDetector
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.replay.ReplayingDecoder<org.jboss.netty.handler.codec.replay.VoidEnum>
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 classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
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 |
ProtocolDetector
public ProtocolDetector(StompProvider provider,
Executor executor)
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)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.