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 MultiPartEncoder
create
(String boundary, MessageBodyWriterContext context) Create a multipart encoder.void
void
void
onNext
(WriteableBodyPart bodyPart) void
onSubscribe
(Flow.Subscription subscription) void
subscribe
(Flow.Subscriber<? super DataChunk> subscriber)
-
Method Details
-
create
Create a multipart encoder.- Parameters:
boundary
- boundary delimitercontext
- writer context- Returns:
- MultiPartEncoder
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<DataChunk>
-
onSubscribe
- Specified by:
onSubscribe
in interfaceFlow.Subscriber<WriteableBodyPart>
-
onNext
- Specified by:
onNext
in interfaceFlow.Subscriber<WriteableBodyPart>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<WriteableBodyPart>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<WriteableBodyPart>
-