Class SpdyHeaderBlockDecoder

java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHeaderBlockDecoder
Direct Known Subclasses:
SpdyHeaderBlockRawDecoder

abstract class SpdyHeaderBlockDecoder extends Object
  • Constructor Details

    • SpdyHeaderBlockDecoder

      SpdyHeaderBlockDecoder()
  • Method Details

    • newInstance

      static SpdyHeaderBlockDecoder newInstance(SpdyVersion spdyVersion, int maxHeaderSize)
    • decode

      abstract void decode(ChannelBuffer headerBlock, SpdyHeadersFrame frame) throws Exception
      Decodes a SPDY Header Block, adding the Name/Value pairs to the given Headers frame. If the header block is malformed, the Headers frame will be marked as invalid. A stream error with status code PROTOCOL_ERROR must be issued in response to an invalid frame.
      Parameters:
      headerBlock - the HeaderBlock to decode
      frame - the Headers frame that receives the Name/Value pairs
      Throws:
      Exception - If the header block is malformed in a way that prevents any future decoding of any other header blocks, an exception will be thrown. A session error with status code PROTOCOL_ERROR must be issued.
    • endHeaderBlock

      abstract void endHeaderBlock(SpdyHeadersFrame frame) throws Exception
      Throws:
      Exception
    • end

      abstract void end()