- java.lang.Object
-
- io.helidon.media.multipart.BodyPartBodyStreamWriter
-
- All Implemented Interfaces:
MessageBodyOperator<MessageBodyWriterContext>,MessageBodyStreamWriter<WriteableBodyPart>
public final class BodyPartBodyStreamWriter extends Object implements MessageBodyStreamWriter<WriteableBodyPart>
WriteableBodyPartstream writer.
-
-
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(io.helidon.common.GenericType<?> type, MessageBodyWriterContext context)static BodyPartBodyStreamWritercreate()Create a new instance ofBodyPartBodyStreamWriterwith the default boundary delimiter.static BodyPartBodyStreamWritercreate(String boundary)Create a new instance ofBodyPartBodyStreamWriterwith the specified boundary delimiter.Flow.Publisher<DataChunk>write(Flow.Publisher<? extends WriteableBodyPart> content, io.helidon.common.GenericType<? extends WriteableBodyPart> type, MessageBodyWriterContext context)
-
-
-
Method Detail
-
accept
public MessageBodyOperator.PredicateResult accept(io.helidon.common.GenericType<?> type, MessageBodyWriterContext context)
- Specified by:
acceptin interfaceMessageBodyOperator<MessageBodyWriterContext>
-
write
public Flow.Publisher<DataChunk> write(Flow.Publisher<? extends WriteableBodyPart> content, io.helidon.common.GenericType<? extends WriteableBodyPart> type, MessageBodyWriterContext context)
- Specified by:
writein interfaceMessageBodyStreamWriter<WriteableBodyPart>
-
create
public static BodyPartBodyStreamWriter create()
Create a new instance ofBodyPartBodyStreamWriterwith the default boundary delimiter.- Returns:
- BodyPartStreamWriter
- See Also:
MultiPartBodyWriter.DEFAULT_BOUNDARY
-
create
public static BodyPartBodyStreamWriter create(String boundary)
Create a new instance ofBodyPartBodyStreamWriterwith the specified boundary delimiter.- Parameters:
boundary- boundary string- Returns:
- BodyPartStreamWriter
-
-