org.webbitserver.netty
Class HybiWebSocketFrameDecoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.replay.ReplayingDecoder<HybiWebSocketFrameDecoder.State>
          extended by org.webbitserver.netty.HybiWebSocketFrameDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class HybiWebSocketFrameDecoder
extends org.jboss.netty.handler.codec.replay.ReplayingDecoder<HybiWebSocketFrameDecoder.State>


Nested Class Summary
static class HybiWebSocketFrameDecoder.State
           
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Method Summary
static HybiWebSocketFrameDecoder clientSide(byte[] outboundMaskingKey)
           
protected  Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, HybiWebSocketFrameDecoder.State state)
           
static HybiWebSocketFrameDecoder serverSide()
           
 
Methods inherited from class org.jboss.netty.handler.codec.replay.ReplayingDecoder
actualReadableBytes, channelClosed, channelDisconnected, checkpoint, checkpoint, decodeLast, exceptionCaught, getState, internalBuffer, 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
 

Method Detail

serverSide

public static HybiWebSocketFrameDecoder serverSide()

clientSide

public static HybiWebSocketFrameDecoder clientSide(byte[] outboundMaskingKey)

decode

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


Copyright © 2012. All Rights Reserved.