Class SpdyHttpDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class SpdyHttpDecoder extends MessageToMessageDecoder<SpdyFrame>
  • Field Details

    • DEFAULT_MAX_HEADER_SIZE

      private static final int DEFAULT_MAX_HEADER_SIZE
      See Also:
    • spdyVersion

      private final int spdyVersion
    • maxHeaderSize

      private final int maxHeaderSize
    • maxContentLength

      private final int maxContentLength
    • messageMap

      private final java.util.Map<java.lang.Integer, FullHttpMessage> messageMap
    • headerSizeMap

      private final IntObjectMap<java.lang.Long> headerSizeMap
    • headersFactory

      private final HttpHeadersFactory headersFactory
    • trailersFactory

      private final HttpHeadersFactory trailersFactory
  • Constructor Details

    • 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, java.util.Map<java.lang.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, java.util.Map<java.lang.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, java.util.Map<java.lang.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.
    • SpdyHttpDecoder

      protected SpdyHttpDecoder(SpdyVersion version, int maxHeaderSize, int maxContentLength, java.util.Map<java.lang.Integer, FullHttpMessage> messageMap, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
      Creates a new instance with the specified parameters.
      Parameters:
      version - the protocol version
      maxHeaderSize - the maximum length of all headers. If the sum of the length of each header exceeds this value, a TooLongHttpHeaderException will be raised.
      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 Details