java.lang.Object
io.helidon.media.multipart.MultiPartEncoder
- All Implemented Interfaces:
Flow.Processor<WriteableBodyPart,,DataChunk> Flow.Publisher<DataChunk>,Flow.Subscriber<WriteableBodyPart>
Reactive processor that encodes a stream of
BodyPart into an HTTP payload.-
Method Summary
Modifier and TypeMethodDescriptionstatic MultiPartEncodercreate(String boundary, MessageBodyWriterContext context) Create a multipart encoder.voidvoidvoidonNext(WriteableBodyPart bodyPart) voidonSubscribe(Flow.Subscription subscription) voidsubscribe(Flow.Subscriber<? super DataChunk> subscriber)
-
Method Details
-
create
Create a multipart encoder.- Parameters:
boundary- boundary delimitercontext- writer context- Returns:
- MultiPartEncoder
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<DataChunk>
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<WriteableBodyPart>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<WriteableBodyPart>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<WriteableBodyPart>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<WriteableBodyPart>
-