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
-
Constructor Summary
Constructors Constructor Description PublisherContentProvider(ReactiveRequest.Content content) -
Method Summary
Modifier and Type Method Description java.lang.StringgetContentType()longgetLength()java.util.Iterator<java.nio.ByteBuffer>iterator()voidonComplete()voidonError(java.lang.Throwable failure)voidonNext(ContentChunk chunk)voidonSubscribe(org.reactivestreams.Subscription subscription)voidsetListener(org.eclipse.jetty.client.AsyncContentProvider.Listener listener)java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
getLength
public long getLength()- Specified by:
getLengthin interfaceorg.eclipse.jetty.client.api.ContentProvider
-
getContentType
public java.lang.String 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
public java.util.Iterator<java.nio.ByteBuffer> iterator()- Specified by:
iteratorin interfacejava.lang.Iterable<java.nio.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
public void onError(java.lang.Throwable failure)- Specified by:
onErrorin interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceorg.reactivestreams.Subscriber<ContentChunk>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-