Iterable<ByteBuffer>, org.eclipse.jetty.client.api.ContentProvider, org.eclipse.jetty.client.api.ContentProvider.Typed, org.reactivestreams.Subscriber<ContentChunk>public class PublisherContentProvider extends Object implements org.eclipse.jetty.client.api.ContentProvider.Typed, org.reactivestreams.Subscriber<ContentChunk>
| Constructor | Description |
|---|---|
PublisherContentProvider(ReactiveRequest.Content content) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getContentType() |
|
long |
getLength() |
|
Iterator<ByteBuffer> |
iterator() |
|
void |
onComplete() |
|
void |
onError(Throwable failure) |
|
void |
onNext(ContentChunk chunk) |
|
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
forEach, spliteratorpublic PublisherContentProvider(ReactiveRequest.Content content)
public long getLength()
getLength in interface org.eclipse.jetty.client.api.ContentProviderpublic String getContentType()
getContentType in interface org.eclipse.jetty.client.api.ContentProvider.Typedpublic Iterator<ByteBuffer> iterator()
iterator in interface Iterable<ByteBuffer>public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<ContentChunk>public void onNext(ContentChunk chunk)
onNext in interface org.reactivestreams.Subscriber<ContentChunk>public void onError(Throwable failure)
onError in interface org.reactivestreams.Subscriber<ContentChunk>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<ContentChunk>Copyright © 2017 The Jetty Project. All rights reserved.