- java.lang.Object
-
- io.helidon.media.multipart.BodyPartBodyStreamReader
-
- All Implemented Interfaces:
MessageBodyOperator<MessageBodyReaderContext>,MessageBodyStreamReader<ReadableBodyPart>
public final class BodyPartBodyStreamReader extends Object implements MessageBodyStreamReader<ReadableBodyPart>
ReadableBodyPartstream reader.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.media.common.MessageBodyOperator
MessageBodyOperator.PredicateResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBodyOperator.PredicateResultaccept(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, wait
-
Methods inherited from interface io.helidon.media.common.MessageBodyStreamReader
unmarshall, unmarshall
-
-
-
-
Method Detail
-
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
public static BodyPartBodyStreamReader create()
Create a new instance ofBodyPartBodyStreamReader.- Returns:
- BodyPartBodyStreamReader
-
-