Package io.helidon.media.jackson.common
Class JacksonBodyWriter
- java.lang.Object
-
- io.helidon.media.jackson.common.JacksonBodyWriter
-
- All Implemented Interfaces:
MessageBodyOperator<MessageBodyWriterContext>,MessageBodyWriter<Object>
public final class JacksonBodyWriter extends Object implements MessageBodyWriter<Object>
Message body writer supporting object binding with Jackson.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(io.helidon.common.GenericType<?> type, MessageBodyWriterContext context)static JacksonBodyWritercreate(com.fasterxml.jackson.databind.ObjectMapper objectMapper)Create a newJacksonBodyWriterinstance.Flow.Publisher<DataChunk>write(io.helidon.common.reactive.Single<Object> content, io.helidon.common.GenericType<? extends Object> type, MessageBodyWriterContext context)
-
-
-
Method Detail
-
accept
public boolean accept(io.helidon.common.GenericType<?> type, MessageBodyWriterContext context)- Specified by:
acceptin interfaceMessageBodyOperator<MessageBodyWriterContext>
-
write
public Flow.Publisher<DataChunk> write(io.helidon.common.reactive.Single<Object> content, io.helidon.common.GenericType<? extends Object> type, MessageBodyWriterContext context)
- Specified by:
writein interfaceMessageBodyWriter<Object>
-
create
public static JacksonBodyWriter create(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a newJacksonBodyWriterinstance.- Parameters:
objectMapper- object mapper to use- Returns:
- JacksonBodyWriter
-
-