- 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBodyOperator.PredicateResult
accept(GenericType<?> type, MessageBodyReaderContext context)
Test if the operator can convert the given type.static BodyPartBodyStreamReader
create()
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:MessageBodyOperator
Test if the operator can convert the given type.- Specified by:
accept
in interfaceMessageBodyOperator<MessageBodyReaderContext>
- Parameters:
type
- the requested typecontext
- the context providing the headers abstraction- Returns:
MessageBodyOperator.PredicateResult
result
-
read
public <U extends ReadableBodyPart> Flow.Publisher<U> read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Description copied from interface:MessageBodyStreamReader
Convert the given HTTP payload into objects of the given type.- Specified by:
read
in 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
-
-