Class FlatFullHttpResponse

java.lang.Object
io.inverno.mod.http.base.internal.netty.FlatHttpResponse
io.inverno.mod.http.base.internal.netty.FlatFullHttpResponse
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.FullHttpMessage, io.netty.handler.codec.http.FullHttpResponse, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, io.netty.handler.codec.http.LastHttpContent, io.netty.util.ReferenceCounted

public class FlatFullHttpResponse extends FlatHttpResponse implements io.netty.handler.codec.http.FullHttpResponse

Optimized FullHttpResponse implementation.

Since:
1.0
Author:
Jeremy Kuhn
  • Constructor Details

    • FlatFullHttpResponse

      public FlatFullHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpHeaders headers, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders)

      Creates a flat full HTTP response.

      Parameters:
      version - the HTTP version
      status - the HTTP response status
      headers - the HTTP headers
      content - the response content
      trailingHeaders - the trailing HTTP headers
  • Method Details

    • trailingHeaders

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

      public FlatFullHttpResponse copy()
      Specified by:
      copy in interface io.netty.buffer.ByteBufHolder
      Specified by:
      copy in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      copy in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • duplicate

      public FlatFullHttpResponse duplicate()
      Specified by:
      duplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      duplicate in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      duplicate in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • retainedDuplicate

      public FlatFullHttpResponse retainedDuplicate()
      Specified by:
      retainedDuplicate in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retainedDuplicate in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      retainedDuplicate in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • replace

      public FlatFullHttpResponse 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.FullHttpMessage
      Specified by:
      replace in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • retain

      public FlatFullHttpResponse retain(int increment)
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      retain in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • retain

      public FlatFullHttpResponse retain()
      Specified by:
      retain in interface io.netty.buffer.ByteBufHolder
      Specified by:
      retain in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      retain in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • touch

      public FlatFullHttpResponse touch()
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      touch in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • touch

      public FlatFullHttpResponse touch(Object hint)
      Specified by:
      touch in interface io.netty.buffer.ByteBufHolder
      Specified by:
      touch in interface io.netty.handler.codec.http.FullHttpMessage
      Specified by:
      touch in interface io.netty.handler.codec.http.FullHttpResponse
      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 FlatHttpResponse
    • setProtocolVersion

      public FlatFullHttpResponse setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.FullHttpResponse
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpMessage
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpResponse
      Overrides:
      setProtocolVersion in class FlatHttpResponse
    • setStatus

      public FlatFullHttpResponse setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
      Specified by:
      setStatus in interface io.netty.handler.codec.http.FullHttpResponse
      Specified by:
      setStatus in interface io.netty.handler.codec.http.HttpResponse
      Overrides:
      setStatus in class FlatHttpResponse