Class DefaultHttp2Content

  • All Implemented Interfaces:
    Http2Content, io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpObject, io.netty.util.ReferenceCounted

    @Internal
    public final class DefaultHttp2Content
    extends io.netty.handler.codec.http.DefaultHttpContent
    implements Http2Content
    An Http2Content default implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultHttp2Content​(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http2.Http2Stream stream)
      Creates a new instance with the specified chunk content.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http2.Http2Stream stream()  
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpContent

        content, copy, duplicate, refCnt, release, release, replace, retain, retain, retainedDuplicate, toString, touch, touch
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject

        decoderResult, equals, getDecoderResult, hashCode, setDecoderResult
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.netty.buffer.ByteBufHolder

        content
      • Methods inherited from interface io.netty.handler.codec.DecoderResultProvider

        decoderResult, setDecoderResult
      • Methods inherited from interface io.netty.handler.codec.http.HttpContent

        copy, duplicate, replace, retain, retain, retainedDuplicate, touch, touch
      • Methods inherited from interface io.netty.handler.codec.http.HttpObject

        getDecoderResult
      • Methods inherited from interface io.netty.util.ReferenceCounted

        refCnt, release, release
    • Constructor Detail

      • DefaultHttp2Content

        public DefaultHttp2Content​(io.netty.buffer.ByteBuf content,
                                   io.netty.handler.codec.http2.Http2Stream stream)
        Creates a new instance with the specified chunk content.
        Parameters:
        content - the content
        stream - The stream id
    • Method Detail

      • stream

        public io.netty.handler.codec.http2.Http2Stream stream()
        Specified by:
        stream in interface Http2Content
        Returns:
        The stream the content is associated with.