Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.client.protocol.websockets
Class WebSocketHttpResponseDecoder

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.client.protocol.websockets.WebSocketHttpResponseDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class WebSocketHttpResponseDecoder
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
WebSocketHttpResponseDecoder()
           
 
Method Summary
protected  Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, org.jboss.netty.handler.codec.replay.VoidEnum state)
           
protected  void readChallengeSolution(org.jboss.netty.handler.codec.http.HttpResponse response, org.jboss.netty.buffer.ChannelBuffer buffer)
           
protected  org.jboss.netty.handler.codec.http.HttpResponse readHeaders(org.jboss.netty.handler.codec.http.HttpResponse response, 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

WebSocketHttpResponseDecoder

public WebSocketHttpResponseDecoder()
Method Detail

decode

protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                        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

readHeaders

protected org.jboss.netty.handler.codec.http.HttpResponse readHeaders(org.jboss.netty.handler.codec.http.HttpResponse response,
                                                                      org.jboss.netty.buffer.ChannelBuffer buffer)

readChallengeSolution

protected void readChallengeSolution(org.jboss.netty.handler.codec.http.HttpResponse response,
                                     org.jboss.netty.buffer.ChannelBuffer buffer)

Stilts 0.1.0-SNAPSHOT

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