Class Http1FullResponse

java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpResponse
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

public class Http1FullResponse extends BasicFullHttpResponse
An implementation of BasicFullHttpResponse which always uses a Http1Headers for holding the headers. This is to aid encapsulating a Http2 request object as a Http1 object which may be efficiently unwrapped before being sent.
  • Field Summary

    Fields inherited from class com.linkedin.alpini.netty4.misc.BasicFullHttpResponse

    _trailingHeaders

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

    EMPTY_LAST_CONTENT
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    io.netty.handler.codec.http.FullHttpResponse
    setStatus(io.netty.handler.codec.http.HttpResponseStatus status)

    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
  • Constructor Details

    • Http1FullResponse

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

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

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

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

      public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.buffer.ByteBuf content, Http1Headers headers, Http1Headers trailingHeaders)
    • Http1FullResponse

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

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

    • 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 BasicFullHttpResponse