Class DelegateStreamedHttpResponse

java.lang.Object
io.micronaut.http.server.netty.DelegateStreamedHttpResponse
All Implemented Interfaces:
StreamedHttpMessage, StreamedHttpResponse, io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, Publisher<io.netty.handler.codec.http.HttpContent>

@Internal public final class DelegateStreamedHttpResponse extends Object implements StreamedHttpResponse
Delegate for Streamed HTTP Response.
Since:
1.0
Author:
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.HttpResponse
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelegateStreamedHttpResponse(io.netty.handler.codec.http.HttpResponse response, Publisher<io.netty.handler.codec.http.HttpContent> stream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.handler.codec.DecoderResult
     
    io.netty.handler.codec.DecoderResult
    Deprecated.
    io.netty.handler.codec.http.HttpVersion
    Deprecated.
    io.netty.handler.codec.http.HttpResponseStatus
    Deprecated.
    io.netty.handler.codec.http.HttpHeaders
     
    io.netty.handler.codec.http.HttpVersion
     
    void
    setDecoderResult(io.netty.handler.codec.DecoderResult result)
     
    io.netty.handler.codec.http.HttpResponse
    setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
     
    io.netty.handler.codec.http.HttpResponse
    setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
     
    io.netty.handler.codec.http.HttpResponseStatus
     
    void
    subscribe(Subscriber<? super io.netty.handler.codec.http.HttpContent> subscriber)
     
     

    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.HttpResponse

    getStatus, setProtocolVersion, setStatus, status
  • Field Details

    • response

      protected final io.netty.handler.codec.http.HttpResponse response
    • message

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

    • DelegateStreamedHttpResponse

      public DelegateStreamedHttpResponse(io.netty.handler.codec.http.HttpResponse response, Publisher<io.netty.handler.codec.http.HttpContent> stream)
      Parameters:
      response - The HttpResponse
      stream - The Publisher for HttpContent
  • Method Details

    • subscribe

      public void subscribe(Subscriber<? super io.netty.handler.codec.http.HttpContent> subscriber)
      Specified by:
      subscribe in interface Publisher<io.netty.handler.codec.http.HttpContent>
    • setStatus

      public io.netty.handler.codec.http.HttpResponse setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
      Specified by:
      setStatus in interface io.netty.handler.codec.http.HttpResponse
    • getStatus

      @Deprecated public io.netty.handler.codec.http.HttpResponseStatus getStatus()
      Deprecated.
      Specified by:
      getStatus in interface io.netty.handler.codec.http.HttpResponse
    • status

      public io.netty.handler.codec.http.HttpResponseStatus status()
      Specified by:
      status in interface io.netty.handler.codec.http.HttpResponse
    • setProtocolVersion

      public io.netty.handler.codec.http.HttpResponse setProtocolVersion(io.netty.handler.codec.http.HttpVersion version)
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpMessage
      Specified by:
      setProtocolVersion in interface io.netty.handler.codec.http.HttpResponse
    • 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