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>
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description PublisherContentProvider(ReactiveRequest.Content content) -
Method Summary
Modifier and Type Method Description StringgetContentType()longgetLength()Iterator<ByteBuffer>iterator()voidonComplete()voidonError(Throwable failure)voidonNext(ContentChunk chunk)voidonSubscribe(org.reactivestreams.Subscription subscription)voidsetListener(org.eclipse.jetty.client.AsyncContentProvider.Listener listener)StringtoString()
-
Constructor Details
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.eclipse.jetty.client.api.ContentProvider
-
getContentType
- Specified by:
getContentTypein interfaceorg.eclipse.jetty.client.api.ContentProvider.Typed
-
setListener
public void setListener(org.eclipse.jetty.client.AsyncContentProvider.Listener listener)- Specified by:
setListenerin interfaceorg.eclipse.jetty.client.AsyncContentProvider
-
iterator
- Specified by:
iteratorin interfaceIterable<ByteBuffer>
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)- Specified by:
onSubscribein interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
onNext
- Specified by:
onNextin interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
onError
- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
toString
-