public class ReactiveStreamsBodyGenerator extends Object implements FeedableBodyGenerator
FeedableBodyGenerator.FeedListener| Constructor and Description |
|---|
ReactiveStreamsBodyGenerator(org.reactivestreams.Publisher<ByteBuffer> publisher) |
| Modifier and Type | Method and Description |
|---|---|
Body |
createBody()
Creates a new instance of the request body to be read.
|
void |
feed(ByteBuffer buffer,
boolean isLast) |
org.reactivestreams.Publisher<ByteBuffer> |
getPublisher() |
void |
setListener(FeedableBodyGenerator.FeedListener listener) |
void |
writeChunkBoundaries() |
public ReactiveStreamsBodyGenerator(org.reactivestreams.Publisher<ByteBuffer> publisher)
public org.reactivestreams.Publisher<ByteBuffer> getPublisher()
public void feed(ByteBuffer buffer, boolean isLast)
feed in interface FeedableBodyGeneratorpublic void writeChunkBoundaries()
writeChunkBoundaries in interface FeedableBodyGeneratorpublic void setListener(FeedableBodyGenerator.FeedListener listener)
setListener in interface FeedableBodyGeneratorpublic Body createBody()
BodyGeneratorcreateBody in interface BodyGeneratornull.Copyright © 2015. All Rights Reserved.