java.lang.Object
io.helidon.http.media.jsonb.JsonbSupport
- All Implemented Interfaces:
- RuntimeType.Api<JsonbSupportConfig>,- NamedService,- MediaSupport
public class JsonbSupport
extends Object
implements MediaSupport, RuntimeType.Api<JsonbSupportConfig>
ServiceLoader provider implementation for JSON Binding media support.- 
Nested Class SummaryNested classes/interfaces inherited from interface io.helidon.http.media.MediaSupportMediaSupport.ReaderResponse<T>, MediaSupport.SupportLevel, MediaSupport.WriterResponse<T>
- 
Method SummaryModifier and TypeMethodDescriptionstatic JsonbSupportConfig.Builderbuilder()Creates a new builder.static MediaSupportcreate()Creates a newJsonbSupport.static MediaSupportCreates a newJsonbSupport.static MediaSupportCreates a newJsonbSupport.static JsonbSupportcreate(JsonbSupportConfig jsonbSupportConfig) Creates a newJsonbSupportbased on theJsonbSupportConfig.static MediaSupportCreates a newJsonbSupport.static JsonbSupportcreate(Consumer<JsonbSupportConfig.Builder> consumer) Creates a new customizedJsonbSupport.name()Name of this implementation, as provided inConfiguredProvider.create(Config, String).The prototype as it was received when creating this runtime object instance.<T> MediaSupport.ReaderResponse<T> reader(GenericType<T> type, Headers requestHeaders) Reader for an entity.<T> MediaSupport.ReaderResponse<T> reader(GenericType<T> type, Headers requestHeaders, Headers responseHeaders) Client response reader.type()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().<T> MediaSupport.WriterResponse<T> writer(GenericType<T> type, Headers requestHeaders, WritableHeaders<?> responseHeaders) Server response writer.<T> MediaSupport.WriterResponse<T> writer(GenericType<T> type, WritableHeaders<?> requestHeaders) Client request writer.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.http.media.MediaSupportinit
- 
Method Details- 
createCreates a newJsonbSupport.- Returns:
- a new JsonbSupport
 
- 
createCreates a newJsonbSupport.- Parameters:
- config- must not be- null
- Returns:
- a new JsonbSupport
 
- 
createCreates a newJsonbSupport.- Parameters:
- config- must not be- null
- name- name of this instance
- Returns:
- a new JsonbSupport
- See Also:
 
- 
createCreates a newJsonbSupport.- Parameters:
- jsonb- jsonb instance
- Returns:
- a new instance
 
- 
createCreates a newJsonbSupportbased on theJsonbSupportConfig.- Parameters:
- jsonbSupportConfig- must not be- null
- Returns:
- a new JsonbSupport
 
- 
createCreates a new customizedJsonbSupport.- Parameters:
- consumer- config builder consumer
- Returns:
- a new JsonbSupport
 
- 
builderCreates a new builder.- Returns:
- a new builder instance
 
- 
nameDescription copied from interface:NamedServiceName of this implementation, as provided inConfiguredProvider.create(Config, String).- Specified by:
- namein interface- NamedService
- Returns:
- name of this service
 
- 
typeDescription copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
- typein interface- NamedService
- Returns:
- type of this service
 
- 
readerDescription copied from interface:MediaSupportReader for an entity.- Specified by:
- readerin interface- MediaSupport
- Type Parameters:
- T- type
- Parameters:
- type- type of entity
- requestHeaders- headers belonging to this entity (such as server request headers), expected to have content type
- Returns:
- reader response, whether this type is supported or not
 
- 
writerpublic <T> MediaSupport.WriterResponse<T> writer(GenericType<T> type, Headers requestHeaders, WritableHeaders<?> responseHeaders) Description copied from interface:MediaSupportServer response writer.- Specified by:
- writerin interface- MediaSupport
- Type Parameters:
- T- type
- Parameters:
- type- type of entity
- requestHeaders- request headers
- responseHeaders- response headers
- Returns:
- writer response, whether this type is supported or not
 
- 
readerpublic <T> MediaSupport.ReaderResponse<T> reader(GenericType<T> type, Headers requestHeaders, Headers responseHeaders) Description copied from interface:MediaSupportClient response reader.- Specified by:
- readerin interface- MediaSupport
- Type Parameters:
- T- type
- Parameters:
- type- type of entity
- requestHeaders- request headers
- responseHeaders- response headers
- Returns:
- reader response, whether this type is supported or not
 
- 
writerpublic <T> MediaSupport.WriterResponse<T> writer(GenericType<T> type, WritableHeaders<?> requestHeaders) Description copied from interface:MediaSupportClient request writer.- Specified by:
- writerin interface- MediaSupport
- Type Parameters:
- T- type
- Parameters:
- type- type of entity
- requestHeaders- request headers
- Returns:
- writer response, whether this type is supported or not
 
- 
prototypeDescription copied from interface:RuntimeType.ApiThe prototype as it was received when creating this runtime object instance.- Specified by:
- prototypein interface- RuntimeType.Api<JsonbSupportConfig>
- Returns:
- prototype object used to create this instance
 
 
-