- java.lang.Object
-
- io.helidon.media.jsonb.JsonbSupport
-
- All Implemented Interfaces:
MediaSupport
public final class JsonbSupport extends Object implements MediaSupport
Support for JSON-B integration. For usage examples navigate to theMediaSupport- See Also:
Jsonb
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonbSupportcreate()Creates a newJsonbSupport.static JsonbSupportcreate(javax.json.bind.Jsonb jsonb)Creates a newJsonbSupport.JsonbBodyReadernewReader()Creates new JSON-B reader instance.JsonbBodyWriternewWriter()Creates new JSON-B writer instance.static JsonbBodyReaderreader()Creates new JSON-B reader instance.Collection<MessageBodyReader<?>>readers()static JsonbBodyWriterwriter()Creates new JSON-B writer instance.Collection<MessageBodyWriter<?>>writers()-
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, streamWriters
-
-
-
-
Method Detail
-
reader
public static JsonbBodyReader reader()
Creates new JSON-B reader instance.- Returns:
- JSON-B reader instance
-
writer
public static JsonbBodyWriter writer()
Creates new JSON-B writer instance.- Returns:
- JSON-B writer instance
-
newReader
public JsonbBodyReader newReader()
Creates new JSON-B reader instance.- Returns:
- JSON-B reader instance
-
newWriter
public JsonbBodyWriter newWriter()
Creates new JSON-B writer instance.- Returns:
- JSON-B writer instance
-
readers
public Collection<MessageBodyReader<?>> readers()
- Specified by:
readersin interfaceMediaSupport
-
writers
public Collection<MessageBodyWriter<?>> writers()
- Specified by:
writersin interfaceMediaSupport
-
create
public static JsonbSupport create(javax.json.bind.Jsonb jsonb)
Creates a newJsonbSupport.- Parameters:
jsonb- the JSON-B to use; must not benull- Returns:
- a new
JsonbSupport - Throws:
NullPointerException- ifjsonbisnull
-
create
public static JsonbSupport create()
Creates a newJsonbSupport.- Returns:
- a new
JsonbSupport
-
-