Class PublisherRequestContent

java.lang.Object
org.eclipse.jetty.reactive.client.internal.PublisherRequestContent
All Implemented Interfaces:
org.eclipse.jetty.client.api.Request.Content, org.reactivestreams.Subscriber<ContentChunk>

public class PublisherRequestContent
extends Object
implements org.eclipse.jetty.client.api.Request.Content, org.reactivestreams.Subscriber<ContentChunk>
  • Constructor Details

  • Method Details

    • getLength

      public long getLength()
      Specified by:
      getLength in interface org.eclipse.jetty.client.api.Request.Content
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.eclipse.jetty.client.api.Request.Content
    • subscribe

      public org.eclipse.jetty.client.api.Request.Content.Subscription subscribe​(org.eclipse.jetty.client.api.Request.Content.Consumer consumer, boolean emitInitialContent)
      Specified by:
      subscribe in interface org.eclipse.jetty.client.api.Request.Content
    • fail

      public void fail​(Throwable failure)
      Specified by:
      fail in interface org.eclipse.jetty.client.api.Request.Content
    • onSubscribe

      public void onSubscribe​(org.reactivestreams.Subscription subscription)
      Specified by:
      onSubscribe in interface org.reactivestreams.Subscriber<ContentChunk>
    • onNext

      public void onNext​(ContentChunk chunk)
      Specified by:
      onNext in interface org.reactivestreams.Subscriber<ContentChunk>
    • onError

      public void onError​(Throwable failure)
      Specified by:
      onError in interface org.reactivestreams.Subscriber<ContentChunk>
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface org.reactivestreams.Subscriber<ContentChunk>
    • toString

      public String toString()
      Overrides:
      toString in class Object