Class SpdyHttpDecoder

    • Constructor Detail

      • SpdyHttpDecoder

        public SpdyHttpDecoder​(SpdyVersion version,
                               int maxContentLength)
        Creates a new instance.
        Parameters:
        version - the protocol version
        maxContentLength - the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised.
      • SpdyHttpDecoder

        @Deprecated
        public SpdyHttpDecoder​(SpdyVersion version,
                               int maxContentLength,
                               boolean validateHeaders)
        Creates a new instance.
        Parameters:
        version - the protocol version
        maxContentLength - the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised.
        validateHeaders - true if http headers should be validated
      • SpdyHttpDecoder

        protected SpdyHttpDecoder​(SpdyVersion version,
                                  int maxContentLength,
                                  Map<Integer,​FullHttpMessage> messageMap)
        Creates a new instance with the specified parameters.
        Parameters:
        version - the protocol version
        maxContentLength - the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised.
        messageMap - the Map used to hold partially received messages.
      • SpdyHttpDecoder

        @Deprecated
        protected SpdyHttpDecoder​(SpdyVersion version,
                                  int maxContentLength,
                                  Map<Integer,​FullHttpMessage> messageMap,
                                  boolean validateHeaders)
        Creates a new instance with the specified parameters.
        Parameters:
        version - the protocol version
        maxContentLength - the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised.
        messageMap - the Map used to hold partially received messages.
        validateHeaders - true if http headers should be validated
      • SpdyHttpDecoder

        protected SpdyHttpDecoder​(SpdyVersion version,
                                  int maxContentLength,
                                  Map<Integer,​FullHttpMessage> messageMap,
                                  HttpHeadersFactory headersFactory,
                                  HttpHeadersFactory trailersFactory)
        Creates a new instance with the specified parameters.
        Parameters:
        version - the protocol version
        maxContentLength - the maximum length of the message content. If the length of the message content exceeds this value, a TooLongFrameException will be raised.
        messageMap - the Map used to hold partially received messages.
        headersFactory - The factory used for creating HTTP headers
        trailersFactory - The factory used for creating HTTP trailers.
    • Method Detail

      • channelInactive

        public void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)
                             throws Exception
        Specified by:
        channelInactive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception
      • removeMessage

        protected FullHttpMessage removeMessage​(int streamId)
      • decode

        protected void decode​(io.netty.channel.ChannelHandlerContext ctx,
                              SpdyFrame msg,
                              List<Object> out)
                       throws Exception
        Specified by:
        decode in class io.netty.handler.codec.MessageToMessageDecoder<SpdyFrame>
        Throws:
        Exception