java.lang.Object
io.helidon.media.multipart.BodyPartBodyStreamReader
- All Implemented Interfaces:
MessageBodyOperator<MessageBodyReaderContext>,MessageBodyStreamReader<ReadableBodyPart>
public final class BodyPartBodyStreamReader
extends Object
implements MessageBodyStreamReader<ReadableBodyPart>
ReadableBodyPart stream reader.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.media.common.MessageBodyOperator
MessageBodyOperator.PredicateResult -
Method Summary
Modifier and TypeMethodDescriptionaccept(GenericType<?> type, MessageBodyReaderContext context) Test if the operator can convert the given type.static BodyPartBodyStreamReadercreate()Create a new instance ofBodyPartBodyStreamReader.<U extends ReadableBodyPart>
Flow.Publisher<U>read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) Convert the given HTTP payload into objects of the given type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.media.common.MessageBodyStreamReader
unmarshall, unmarshall
-
Method Details
-
accept
public MessageBodyOperator.PredicateResult accept(GenericType<?> type, MessageBodyReaderContext context) Description copied from interface:MessageBodyOperatorTest if the operator can convert the given type.- Specified by:
acceptin interfaceMessageBodyOperator<MessageBodyReaderContext>- Parameters:
type- the requested typecontext- the context providing the headers abstraction- Returns:
MessageBodyOperator.PredicateResultresult
-
read
public <U extends ReadableBodyPart> Flow.Publisher<U> read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) Description copied from interface:MessageBodyStreamReaderConvert the given HTTP payload into objects of the given type.- Specified by:
readin interfaceMessageBodyStreamReader<ReadableBodyPart>- Type Parameters:
U- requested type- Parameters:
publisher- HTTP payloadtype- requested type representationcontext- reader context- Returns:
- publisher
-
create
Create a new instance ofBodyPartBodyStreamReader.- Returns:
- BodyPartBodyStreamReader
-