public final class Multipart extends Object implements org.reactivestreams.Processor<ByteBuffer,Part>
| Constructor and Description |
|---|
Multipart(Iterable<Map.Entry<String,String>> headers)
Ctor.
|
Multipart(org.reactivestreams.Processor<ByteBuffer,org.reactivestreams.Publisher<ByteBuffer>> processor)
Ctor.
|
Multipart(String boundary)
Ctor.
|
Multipart(Supplier<String> boundary)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete() |
void |
onError(Throwable throwable) |
void |
onNext(ByteBuffer item) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
void |
subscribe(org.reactivestreams.Subscriber<? super Part> sub) |
public Multipart(Iterable<Map.Entry<String,String>> headers)
headers - Request headers.public Multipart(Supplier<String> boundary)
boundary - The boundary supplier.public Multipart(String boundary)
boundary - Multipart body boundarypublic Multipart(org.reactivestreams.Processor<ByteBuffer,org.reactivestreams.Publisher<ByteBuffer>> processor)
processor - The processor.public void subscribe(org.reactivestreams.Subscriber<? super Part> sub)
subscribe in interface org.reactivestreams.Publisher<Part>public void onSubscribe(org.reactivestreams.Subscription subscription)
onSubscribe in interface org.reactivestreams.Subscriber<ByteBuffer>public void onNext(ByteBuffer item)
onNext in interface org.reactivestreams.Subscriber<ByteBuffer>public void onError(Throwable throwable)
onError in interface org.reactivestreams.Subscriber<ByteBuffer>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<ByteBuffer>Copyright © 2012–2020 jcabi.com. All rights reserved.