Class BasicFullHttpResponse

java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpResponse
com.linkedin.alpini.netty4.misc.BasicHttpResponse
com.linkedin.alpini.netty4.misc.BasicFullHttpResponse
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.AttributeMap, io.netty.util.ReferenceCounted
Direct Known Subclasses:
Http1FullResponse

public class BasicFullHttpResponse extends BasicHttpResponse implements io.netty.handler.codec.http.FullHttpResponse
Created by acurtis on 4/19/17.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected io.netty.handler.codec.http.HttpHeaders
     

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

    EMPTY_LAST_CONTENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicFullHttpResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeaders)
     
    BasicFullHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.buffer.ByteBuf content)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBuf
     
    io.netty.handler.codec.http.FullHttpResponse
     
    io.netty.handler.codec.http.FullHttpResponse
     
    int
     
    boolean
     
    boolean
    release(int decrement)
     
    io.netty.handler.codec.http.FullHttpResponse
    replace(io.netty.buffer.ByteBuf content)
     
    io.netty.handler.codec.http.FullHttpResponse
     
    io.netty.handler.codec.http.FullHttpResponse
    retain(int increment)
     
    io.netty.handler.codec.http.FullHttpResponse
     
    io.netty.handler.codec.http.FullHttpResponse
    setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
     
    io.netty.handler.codec.http.FullHttpResponse
    setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
     
     
    io.netty.handler.codec.http.FullHttpResponse
     
    io.netty.handler.codec.http.FullHttpResponse
    touch(Object hint)
     
    io.netty.handler.codec.http.HttpHeaders
     

    Methods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpResponse

    attr, hasAttr

    Methods inherited from class io.netty.handler.codec.http.DefaultHttpResponse

    equals, getStatus, hashCode, status

    Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage

    getProtocolVersion, headers, protocolVersion

    Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject

    decoderResult, getDecoderResult, setDecoderResult

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    decoderResult, setDecoderResult

    Methods inherited from interface io.netty.handler.codec.http.HttpMessage

    getProtocolVersion, headers, protocolVersion

    Methods inherited from interface io.netty.handler.codec.http.HttpObject

    getDecoderResult

    Methods inherited from interface io.netty.handler.codec.http.HttpResponse

    getStatus, status
  • Field Details

    • _trailingHeaders

      protected io.netty.handler.codec.http.HttpHeaders _trailingHeaders
  • Constructor Details

    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeaders)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
    • BasicFullHttpResponse

      public BasicFullHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse, io.netty.handler.codec.http.HttpHeaders headers, io.netty.handler.codec.http.HttpHeaders trailingHeaders, io.netty.buffer.ByteBuf content)
  • Method Details

    • setProtocolVersion

      public io.netty.handler.codec.http.FullHttpResponse 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 io.netty.handler.codec.http.DefaultHttpResponse
    • setStatus

      public io.netty.handler.codec.http.FullHttpResponse 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 io.netty.handler.codec.http.DefaultHttpResponse
    • trailingHeaders

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

      public io.netty.buffer.ByteBuf content()
      Specified by:
      content in interface io.netty.buffer.ByteBufHolder
    • copy

      public io.netty.handler.codec.http.FullHttpResponse 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
    • duplicate

      public io.netty.handler.codec.http.FullHttpResponse 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
    • retainedDuplicate

      public io.netty.handler.codec.http.FullHttpResponse 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
    • replace

      public io.netty.handler.codec.http.FullHttpResponse 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
    • retain

      public io.netty.handler.codec.http.FullHttpResponse 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
    • refCnt

      public int refCnt()
      Specified by:
      refCnt in interface io.netty.util.ReferenceCounted
    • retain

      public io.netty.handler.codec.http.FullHttpResponse 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
    • touch

      public io.netty.handler.codec.http.FullHttpResponse 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
    • touch

      public io.netty.handler.codec.http.FullHttpResponse 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
    • release

      public boolean release()
      Specified by:
      release in interface io.netty.util.ReferenceCounted
    • release

      public boolean release(int decrement)
      Specified by:
      release in interface io.netty.util.ReferenceCounted
    • toString

      public String toString()
      Overrides:
      toString in class io.netty.handler.codec.http.DefaultHttpResponse