Class PublisherContentProvider

java.lang.Object
org.eclipse.jetty.reactive.client.internal.PublisherContentProvider
All Implemented Interfaces:
Iterable<ByteBuffer>, org.eclipse.jetty.client.api.ContentProvider, org.eclipse.jetty.client.api.ContentProvider.Typed, org.eclipse.jetty.client.AsyncContentProvider, org.reactivestreams.Subscriber<ContentChunk>

public class PublisherContentProvider
extends Object
implements org.eclipse.jetty.client.api.ContentProvider.Typed, org.eclipse.jetty.client.AsyncContentProvider, org.reactivestreams.Subscriber<ContentChunk>
  • Constructor Details

  • Method Details

    • getLength

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

      public String getContentType()
      Specified by:
      getContentType in interface org.eclipse.jetty.client.api.ContentProvider.Typed
    • setListener

      public void setListener​(org.eclipse.jetty.client.AsyncContentProvider.Listener listener)
      Specified by:
      setListener in interface org.eclipse.jetty.client.AsyncContentProvider
    • iterator

      public Iterator<ByteBuffer> iterator()
      Specified by:
      iterator in interface Iterable<ByteBuffer>
    • 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