Class PublisherContentProvider

java.lang.Object
org.eclipse.jetty.reactive.client.internal.PublisherContentProvider
All Implemented Interfaces:
java.lang.Iterable<java.nio.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 java.lang.Object
implements org.eclipse.jetty.client.api.ContentProvider.Typed, org.eclipse.jetty.client.AsyncContentProvider, org.reactivestreams.Subscriber<ContentChunk>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.client.AsyncContentProvider

    org.eclipse.jetty.client.AsyncContentProvider.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.ContentProvider

    org.eclipse.jetty.client.api.ContentProvider.Typed
  • Constructor Summary

    Constructors 
    Constructor Description
    PublisherContentProvider​(ReactiveRequest.Content content)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getContentType()  
    long getLength()  
    java.util.Iterator<java.nio.ByteBuffer> iterator()  
    void onComplete()  
    void onError​(java.lang.Throwable failure)  
    void onNext​(ContentChunk chunk)  
    void onSubscribe​(org.reactivestreams.Subscription subscription)  
    void setListener​(org.eclipse.jetty.client.AsyncContentProvider.Listener listener)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.client.api.ContentProvider

    isReproducible

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

  • Method Details

    • getLength

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

      public java.lang.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 java.util.Iterator<java.nio.ByteBuffer> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<java.nio.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​(java.lang.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 java.lang.String toString()
      Overrides:
      toString in class java.lang.Object