Class EmptyHttpRequest

java.lang.Object
io.micronaut.http.netty.stream.EmptyHttpRequest
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.FullHttpMessage, io.netty.handler.codec.http.FullHttpRequest, io.netty.handler.codec.http.HttpContent, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.LastHttpContent, io.netty.util.ReferenceCounted

@Internal public class EmptyHttpRequest extends Object implements io.netty.handler.codec.http.FullHttpRequest
Delegate for Empty HTTP Response.
Since:
1.0
Author:
jroper, Graeme Rocher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final io.netty.handler.codec.http.HttpMessage
     
    protected final io.netty.handler.codec.http.HttpRequest
     

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

    EMPTY_LAST_CONTENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    EmptyHttpRequest(io.netty.handler.codec.http.HttpRequest request)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBuf
     
    io.netty.handler.codec.http.FullHttpRequest
     
    io.netty.handler.codec.DecoderResult
     
    io.netty.handler.codec.http.FullHttpRequest
     
    io.netty.handler.codec.DecoderResult
    Deprecated.
    io.netty.handler.codec.http.HttpMethod
    Deprecated.
    io.netty.handler.codec.http.HttpVersion
    Deprecated.
    Deprecated.
    io.netty.handler.codec.http.HttpHeaders
     
    io.netty.handler.codec.http.HttpMethod
     
    io.netty.handler.codec.http.HttpVersion
     
    int
     
    boolean
     
    boolean
    release(int decrement)
     
    io.netty.handler.codec.http.FullHttpRequest
    replace(io.netty.buffer.ByteBuf byteBuf)
     
    io.netty.handler.codec.http.FullHttpRequest
     
    io.netty.handler.codec.http.FullHttpRequest
    retain(int increment)
     
    io.netty.handler.codec.http.FullHttpRequest
     
    void
    setDecoderResult(io.netty.handler.codec.DecoderResult result)
     
    io.netty.handler.codec.http.FullHttpRequest
    setMethod(io.netty.handler.codec.http.HttpMethod method)
     
    io.netty.handler.codec.http.FullHttpRequest
    setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
     
    io.netty.handler.codec.http.FullHttpRequest
     
     
    io.netty.handler.codec.http.FullHttpRequest
     
    io.netty.handler.codec.http.FullHttpRequest
     
    io.netty.handler.codec.http.HttpHeaders
     
    uri()
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, 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.HttpRequest

    getMethod, getUri, method, uri
  • Field Details

    • request

      protected final io.netty.handler.codec.http.HttpRequest request
    • message

      protected final io.netty.handler.codec.http.HttpMessage message
  • Constructor Details

    • EmptyHttpRequest

      public EmptyHttpRequest(io.netty.handler.codec.http.HttpRequest request)
      Parameters:
      request - The Http request
  • Method Details

    • setUri

      public io.netty.handler.codec.http.FullHttpRequest setUri(String uri)
      Specified by:
      setUri in interface io.netty.handler.codec.http.FullHttpRequest
      Specified by:
      setUri in interface io.netty.handler.codec.http.HttpRequest
    • setMethod

      public io.netty.handler.codec.http.FullHttpRequest setMethod(io.netty.handler.codec.http.HttpMethod method)
      Specified by:
      setMethod in interface io.netty.handler.codec.http.FullHttpRequest
      Specified by:
      setMethod in interface io.netty.handler.codec.http.HttpRequest
    • setProtocolVersion

      public io.netty.handler.codec.http.FullHttpRequest setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.FullHttpRequest
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpMessage
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpRequest
    • copy

      public io.netty.handler.codec.http.FullHttpRequest 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.FullHttpRequest
      Specified by:
      copy in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      copy in interface io.netty.handler.codec.http.LastHttpContent
    • retain

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

      public io.netty.handler.codec.http.FullHttpRequest 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.FullHttpRequest
      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.FullHttpRequest 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.FullHttpRequest
      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.FullHttpRequest touch(Object o)
      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.FullHttpRequest
      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
    • trailingHeaders

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

      public io.netty.handler.codec.http.FullHttpRequest 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.FullHttpRequest
      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.FullHttpRequest 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.FullHttpRequest
      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.FullHttpRequest replace(io.netty.buffer.ByteBuf byteBuf)
      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.FullHttpRequest
      Specified by:
      replace in interface io.netty.handler.codec.http.HttpContent
      Specified by:
      replace in interface io.netty.handler.codec.http.LastHttpContent
    • content

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

      public int refCnt()
      Specified by:
      refCnt 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
    • getMethod

      @Deprecated public io.netty.handler.codec.http.HttpMethod getMethod()
      Deprecated.
      Specified by:
      getMethod in interface io.netty.handler.codec.http.HttpRequest
    • method

      public io.netty.handler.codec.http.HttpMethod method()
      Specified by:
      method in interface io.netty.handler.codec.http.HttpRequest
    • getUri

      @Deprecated public String getUri()
      Deprecated.
      Specified by:
      getUri in interface io.netty.handler.codec.http.HttpRequest
    • uri

      public String uri()
      Specified by:
      uri in interface io.netty.handler.codec.http.HttpRequest
    • getProtocolVersion

      @Deprecated public io.netty.handler.codec.http.HttpVersion getProtocolVersion()
      Deprecated.
      Specified by:
      getProtocolVersion in interface io.netty.handler.codec.http.HttpMessage
    • protocolVersion

      public io.netty.handler.codec.http.HttpVersion protocolVersion()
      Specified by:
      protocolVersion in interface io.netty.handler.codec.http.HttpMessage
    • headers

      public io.netty.handler.codec.http.HttpHeaders headers()
      Specified by:
      headers in interface io.netty.handler.codec.http.HttpMessage
    • getDecoderResult

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

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

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

      public String toString()
      Overrides:
      toString in class Object