- java.lang.Object
-
- io.helidon.media.multipart.MultiPartDecoder
-
- All Implemented Interfaces:
Flow.Processor<DataChunk,ReadableBodyPart>,Flow.Publisher<ReadableBodyPart>,Flow.Subscriber<DataChunk>
public class MultiPartDecoder extends Object implements Flow.Processor<DataChunk,ReadableBodyPart>
Reactive processor that decodes HTTP payload as a stream ofBodyPart.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiPartDecodercreate(String boundary, MessageBodyReaderContext context)Create a new multipart decoder.voidonComplete()voidonError(Throwable throwable)voidonNext(DataChunk chunk)voidonSubscribe(Flow.Subscription subscription)voidsubscribe(Flow.Subscriber<? super ReadableBodyPart> subscriber)
-
-
-
Method Detail
-
create
public static MultiPartDecoder create(String boundary, MessageBodyReaderContext context)
Create a new multipart decoder.- Parameters:
boundary- boundary delimitercontext- reader context- Returns:
- MultiPartDecoder
-
subscribe
public void subscribe(Flow.Subscriber<? super ReadableBodyPart> subscriber)
- Specified by:
subscribein interfaceFlow.Publisher<ReadableBodyPart>
-
onSubscribe
public void onSubscribe(Flow.Subscription subscription)
- Specified by:
onSubscribein interfaceFlow.Subscriber<DataChunk>
-
onNext
public void onNext(DataChunk chunk)
- Specified by:
onNextin interfaceFlow.Subscriber<DataChunk>
-
onError
public void onError(Throwable throwable)
- Specified by:
onErrorin interfaceFlow.Subscriber<DataChunk>
-
onComplete
public void onComplete()
- Specified by:
onCompletein interfaceFlow.Subscriber<DataChunk>
-
-