Class BasicHttpResponse

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
All Implemented Interfaces:
io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, io.netty.util.AttributeMap
Direct Known Subclasses:
BasicFullHttpResponse, Http1Response

public class BasicHttpResponse extends io.netty.handler.codec.http.DefaultHttpResponse implements io.netty.util.AttributeMap
Created by acurtis on 3/23/17.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    BasicHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)
     
     
    BasicHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)
     
     
    BasicHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
     
     
    BasicHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpHeaders headers)
     
     
    BasicHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse)
     
    protected
    BasicHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse, io.netty.handler.codec.http.HttpHeaders headers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> io.netty.util.Attribute<T>
    attr(io.netty.util.AttributeKey<T> key)
    Get the Attribute for the given AttributeKey.
    <T> boolean
    hasAttr(io.netty.util.AttributeKey<T> key)
    Returns true if and only if the given Attribute exists in this AttributeMap.

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

    equals, getStatus, hashCode, setProtocolVersion, setStatus, status, toString

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

    • BasicHttpResponse

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

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

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

      public BasicHttpResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpHeaders headers)
    • BasicHttpResponse

      public BasicHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse)
    • BasicHttpResponse

      protected BasicHttpResponse(io.netty.handler.codec.http.HttpResponse httpResponse, io.netty.handler.codec.http.HttpHeaders headers)
  • Method Details

    • attr

      public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key)
      Get the Attribute for the given AttributeKey. This method will never return null, but may return an Attribute which does not have a value set yet.
      Specified by:
      attr in interface io.netty.util.AttributeMap
      Parameters:
      key -
    • hasAttr

      public <T> boolean hasAttr(io.netty.util.AttributeKey<T> key)
      Returns true if and only if the given Attribute exists in this AttributeMap.
      Specified by:
      hasAttr in interface io.netty.util.AttributeMap
      Parameters:
      key -