Class FlatLastHttpContent

java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.inverno.mod.http.base.internal.netty.FlatLastHttpContent
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.LastHttpContent, io.netty.util.ReferenceCounted

public class FlatLastHttpContent extends io.netty.buffer.DefaultByteBufHolder implements io.netty.handler.codec.http.LastHttpContent

Optimized LastHttpContent implementation.

Since:
1.0
Author:
Jeremy Kuhn
  • Field Summary

    Fields inherited from interface io.netty.handler.codec.http.LastHttpContent

    EMPTY_LAST_CONTENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders)
    Creates a flat last HTTP content.
    FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.handler.codec.DecoderResult result)
    Creates a flat HTTP content.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.handler.codec.http.LastHttpContent
     
    io.netty.handler.codec.DecoderResult
     
    io.netty.handler.codec.http.LastHttpContent
     
    io.netty.handler.codec.DecoderResult
    Deprecated.
    io.netty.handler.codec.http.LastHttpContent
    replace(io.netty.buffer.ByteBuf content)
     
    io.netty.handler.codec.http.LastHttpContent
     
    io.netty.handler.codec.http.LastHttpContent
    retain(int increment)
     
    io.netty.handler.codec.http.LastHttpContent
     
    void
    setDecoderResult(io.netty.handler.codec.DecoderResult result)
     
     
    touch(Object hint)
     
    io.netty.handler.codec.http.HttpHeaders
     

    Methods inherited from class io.netty.buffer.DefaultByteBufHolder

    content, contentToString, equals, hashCode, refCnt, release, release, toString

    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.util.ReferenceCounted

    refCnt, release, release
  • Constructor Details

    • FlatLastHttpContent

      public FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders)

      Creates a flat last HTTP content.

      Parameters:
      content - the content
      trailingHeaders - the trailing HTTP headers
    • FlatLastHttpContent

      public FlatLastHttpContent(io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.handler.codec.DecoderResult result)

      Creates a flat HTTP content.

      Parameters:
      content - the content
      trailingHeaders - the trailing HTTP headers
      result - the decoder result
  • Method Details

    • trailingHeaders

      public io.netty.handler.codec.http.HttpHeaders trailingHeaders()
      Specified by:
      trailingHeaders in interface io.netty.handler.codec.http.LastHttpContent
    • copy

      public io.netty.handler.codec.http.LastHttpContent copy()
      Specified by:
      copy in interface io.netty.buffer.ByteBufHolder
      Specified by:
      copy in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      copy in interface io.netty.handler.codec.http.LastHttpContent
      Overrides:
      copy in class io.netty.buffer.DefaultByteBufHolder
    • duplicate

      public io.netty.handler.codec.http.LastHttpContent duplicate()
      Specified by:
      duplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      duplicate in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      duplicate in interface io.netty.handler.codec.http.LastHttpContent
      Overrides:
      duplicate in class io.netty.buffer.DefaultByteBufHolder
    • retainedDuplicate

      public io.netty.handler.codec.http.LastHttpContent retainedDuplicate()
      Specified by:
      retainedDuplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retainedDuplicate in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      retainedDuplicate in interface io.netty.handler.codec.http.LastHttpContent
      Overrides:
      retainedDuplicate in class io.netty.buffer.DefaultByteBufHolder
    • replace

      public io.netty.handler.codec.http.LastHttpContent replace(io.netty.buffer.ByteBuf content)
      Specified by:
      replace in interface io.netty.buffer.ByteBufHolder
      Specified by:
      replace in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      replace in interface io.netty.handler.codec.http.LastHttpContent
      Overrides:
      replace in class io.netty.buffer.DefaultByteBufHolder
    • retain

      public io.netty.handler.codec.http.LastHttpContent retain(int increment)
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      retain in interface io.netty.handler.codec.http.LastHttpContent
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
      Overrides:
      retain in class io.netty.buffer.DefaultByteBufHolder
    • retain

      public io.netty.handler.codec.http.LastHttpContent retain()
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      retain in interface io.netty.handler.codec.http.LastHttpContent
      Specified by:
      retain in interface io.netty.util.ReferenceCounted
      Overrides:
      retain in class io.netty.buffer.DefaultByteBufHolder
    • decoderResult

      public io.netty.handler.codec.DecoderResult decoderResult()
      Specified by:
      decoderResult in interface io.netty.handler.codec.DecoderResultProvider
    • getDecoderResult

      @Deprecated public io.netty.handler.codec.DecoderResult getDecoderResult()
      Deprecated.
      Specified by:
      getDecoderResult in interface io.netty.handler.codec.http.HttpObject
    • setDecoderResult

      public void setDecoderResult(io.netty.handler.codec.DecoderResult result)
      Specified by:
      setDecoderResult in interface io.netty.handler.codec.DecoderResultProvider
    • touch

      public FlatLastHttpContent touch()
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      touch in interface io.netty.handler.codec.http.LastHttpContent
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
      Overrides:
      touch in class io.netty.buffer.DefaultByteBufHolder
    • touch

      public FlatLastHttpContent touch(Object hint)
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      touch in interface io.netty.handler.codec.http.LastHttpContent
      Specified by:
      touch in interface io.netty.util.ReferenceCounted
      Overrides:
      touch in class io.netty.buffer.DefaultByteBufHolder