- java.lang.Object
-
- io.helidon.media.multipart.MultiPartBodyReader
-
- All Implemented Interfaces:
MessageBodyOperator<MessageBodyReaderContext>
,MessageBodyReader<MultiPart>
@Deprecated(since="2.5.0", forRemoval=true) public final class MultiPartBodyReader extends Object implements MessageBodyReader<MultiPart>
Deprecated, for removal: This API element is subject to removal in a future version.UseBodyPartBodyStreamReader
instead. This interface will be removed at 3.0.0 version.ReadableMultiPart
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 Deprecated Methods Modifier and Type Method Description MessageBodyOperator.PredicateResult
accept(GenericType<?> type, MessageBodyReaderContext ctx)
Deprecated, for removal: This API element is subject to removal in a future version.Test if the operator can convert the given type.static MultiPartBodyReader
create()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance ofMultiPartBodyReader
.<U extends MultiPart>
Single<U>read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Deprecated, for removal: This API element is subject to removal in a future version.Convert a HTTP payload into a Single publisher 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.MessageBodyReader
unmarshall, unmarshall
-
-
-
-
Method Detail
-
accept
public MessageBodyOperator.PredicateResult accept(GenericType<?> type, MessageBodyReaderContext ctx)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MessageBodyOperator
Test if the operator can convert the given type.- Specified by:
accept
in interfaceMessageBodyOperator<MessageBodyReaderContext>
- Parameters:
type
- the requested typectx
- the context providing the headers abstraction- Returns:
MessageBodyOperator.PredicateResult
result
-
read
public <U extends MultiPart> Single<U> read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:MessageBodyReader
Convert a HTTP payload into a Single publisher of the given type.- Specified by:
read
in interfaceMessageBodyReader<MultiPart>
- Type Parameters:
U
- actual requested type parameter- Parameters:
publisher
- HTTP payloadtype
- requested typecontext
- the context providing the headers abstraction- Returns:
- Single publisher
-
create
public static MultiPartBodyReader create()
Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance ofMultiPartBodyReader
.- Returns:
- MultiPartReader
-
-