java.lang.Object
io.helidon.media.jackson.JacksonSupport
- All Implemented Interfaces:
MediaSupport
Support for Jackson integration.
For usage examples navigate to the
MediaSupport
.-
Method Summary
Modifier and TypeMethodDescriptionstatic JacksonSupport
create()
Creates a newJacksonSupport
.static JacksonSupport
create
(ObjectMapper objectMapper) Creates a newJacksonSupport
.static MessageBodyStreamWriter<Object>
Return a default Jackson entity event stream writer.static MessageBodyStreamWriter<Object>
eventStreamWriter
(ObjectMapper objectMapper) Create a new Jackson entity stream writer based onObjectMapper
instance.Return Jackson stream writer instance forMediaType.TEXT_EVENT_STREAM
content type.static MessageBodyStreamWriter<Object>
Return a default Jackson entity event stream writer.static MessageBodyStreamWriter<Object>
ndJsonStreamWriter
(ObjectMapper objectMapper) Create a new Jackson entity stream writer based onObjectMapper
instance.Return Jackson stream writer instance forMediaType.APPLICATION_X_NDJSON
content type.static MessageBodyReader<Object>
reader()
Return a default Jackson entity reader.static MessageBodyReader<Object>
reader
(ObjectMapper objectMapper) Create a new Jackson entity reader based onObjectMapper
instance.Return Jackson reader instance.readers()
Returns the collection of the readers which should be registered.static MessageBodyStreamWriter<Object>
Return a default Jackson entity stream writer.static MessageBodyStreamWriter<Object>
streamWriter
(ObjectMapper objectMapper) Create a new Jackson entity stream writer based onObjectMapper
instance.Return Jackson stream writer instance.Returns the collection of the stream writers which should be registered.static MessageBodyWriter<Object>
writer()
Return a default Jackson entity writer.static MessageBodyWriter<Object>
writer
(ObjectMapper objectMapper) Create a new Jackson entity writer based onObjectMapper
instance.Return Jackson writer instance.writers()
Returns the collection of the writers which should be registered.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.MediaSupport
register, streamReaders
-
Method Details
-
create
Creates a newJacksonSupport
.- Returns:
- a new
JacksonSupport
-
create
Creates a newJacksonSupport
.- Parameters:
objectMapper
- must not benull
- Returns:
- a new
JacksonSupport
-
reader
Return a default Jackson entity reader.- Returns:
- default Jackson body writer instance
-
reader
Create a new Jackson entity reader based onObjectMapper
instance.- Parameters:
objectMapper
- object mapper instance- Returns:
- new Jackson body reader instance
-
writer
Return a default Jackson entity writer.- Returns:
- default Jackson body writer instance
-
writer
Create a new Jackson entity writer based onObjectMapper
instance.- Parameters:
objectMapper
- object mapper instance- Returns:
- new Jackson body writer instance
-
streamWriter
Return a default Jackson entity stream writer.- Returns:
- default Jackson body writer stream instance
-
streamWriter
Create a new Jackson entity stream writer based onObjectMapper
instance.- Parameters:
objectMapper
- object mapper instance- Returns:
- new Jackson body stream writer instance
-
eventStreamWriter
Return a default Jackson entity event stream writer. This writer is forMediaType.TEXT_EVENT_STREAM
content type.- Returns:
- new Jackson body stream writer instance
-
eventStreamWriter
Create a new Jackson entity stream writer based onObjectMapper
instance. This writer is forMediaType.TEXT_EVENT_STREAM
content type.- Parameters:
objectMapper
- object mapper instance- Returns:
- new Jackson body stream writer instance
-
ndJsonStreamWriter
Return a default Jackson entity event stream writer. This writer is forMediaType.APPLICATION_X_NDJSON
content type.- Returns:
- new Jackson body stream writer instance
-
ndJsonStreamWriter
Create a new Jackson entity stream writer based onObjectMapper
instance. This writer is forMediaType.APPLICATION_X_NDJSON
content type.- Parameters:
objectMapper
- object mapper instance- Returns:
- new Jackson body stream writer instance
-
readerInstance
Return Jackson reader instance.- Returns:
- Jackson reader instance
-
writerInstance
Return Jackson writer instance.- Returns:
- Jackson writer instance
-
streamWriterInstance
Return Jackson stream writer instance.- Returns:
- Jackson stream writer instance
-
eventStreamWriterInstance
Return Jackson stream writer instance forMediaType.TEXT_EVENT_STREAM
content type.- Returns:
- Jackson event stream writer instance
-
ndJsonStreamWriterInstance
Return Jackson stream writer instance forMediaType.APPLICATION_X_NDJSON
content type.- Returns:
- Jackson event stream writer instance
-
readers
Description copied from interface:MediaSupport
Returns the collection of the readers which should be registered.- Specified by:
readers
in interfaceMediaSupport
- Returns:
- readers
-
writers
Description copied from interface:MediaSupport
Returns the collection of the writers which should be registered.- Specified by:
writers
in interfaceMediaSupport
- Returns:
- writers
-
streamWriters
Description copied from interface:MediaSupport
Returns the collection of the stream writers which should be registered.- Specified by:
streamWriters
in interfaceMediaSupport
- Returns:
- stream writers
-