- All Superinterfaces:
MediaSupportConfig,Prototype.Api,Prototype.Factory<JsonbSupport>
- All Known Implementing Classes:
JsonbSupportConfig.BuilderBase.JsonbSupportConfigImpl
Configuration of the
JsonbSupport.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forJsonbSupport.static classJsonbSupportConfig.BuilderBase<BUILDER extends JsonbSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JsonbSupportConfig> Fluent API builder base forJsonbSupportConfig. -
Method Summary
Modifier and TypeMethodDescriptionTypes accepted by this media support.Jsonbbooleanconfiguration properties.static JsonbSupportConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static JsonbSupportConfig.Builderbuilder(JsonbSupportConfig instance) Create a new fluent API builder from an existing instance.JsonbClassconfiguration properties.Content type to use if not configured (in response headers for server, and in request headers for client).static JsonbSupportConfigcreate()Create a new instance with default values.static JsonbSupportConfigDeprecated.static JsonbSupportConfigCreate a new instance from configuration.jsonb()Jsonb instance.name()Name of the support.Jsonb configuration properties.JsonbStringconfiguration properties.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
jsonb
Jsonb jsonb()Jsonb instance.- Returns:
- jsonb instance
-
stringProperties
- Returns:
- jsonb config properties
-
booleanProperties
Jsonbbooleanconfiguration properties. Properties are being ignored if specificJsonbis set.- Returns:
- jsonb config properties
-
classProperties
- Returns:
- jsonb config properties
-
properties
Jsonb configuration properties. Properties are being ignored if specificJsonbis set.- Returns:
- jsonb config properties
-
name
String name()Description copied from interface:MediaSupportConfigName of the support. Each extension should provide its own default. This is to enable multiple instance of the same type.- Specified by:
namein interfaceMediaSupportConfig- Returns:
- name of the support
-
acceptedMediaTypes
Types accepted by this media support. When server processes the response, it checks theAcceptheader, to choose the right media support, if there are more supports available for the provided entity object.Supported accepted types defaults to "application/json", and "application/json-patch+json".
- Specified by:
acceptedMediaTypesin interfaceMediaSupportConfig- Returns:
- accepted media types
-
contentType
HttpMediaType contentType()Content type to use if not configured (in response headers for server, and in request headers for client).- Specified by:
contentTypein interfaceMediaSupportConfig- Returns:
- content type to use, defaults to
HttpMediaTypes.JSON
-
create(io.helidon.config.Config)