Class 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>
    • Method Detail

      • 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
      • 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>