Class JsonBindingSupportConfig.BuilderBase.JsonBindingSupportConfigImpl
java.lang.Object
io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
io.helidon.http.media.json.binding.JsonBindingSupportConfig.BuilderBase.JsonBindingSupportConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<JsonBindingSupport>,JsonBindingSupportConfig,MediaSupportConfig,Supplier<JsonBindingSupport>
- Enclosing class:
JsonBindingSupportConfig.BuilderBase<BUILDER extends JsonBindingSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JsonBindingSupportConfig>
protected static class JsonBindingSupportConfig.BuilderBase.JsonBindingSupportConfigImpl
extends MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
implements JsonBindingSupportConfig, Supplier<JsonBindingSupport>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.http.media.json.binding.JsonBindingSupportConfig
JsonBindingSupportConfig.Builder, JsonBindingSupportConfig.BuilderBase<BUILDER extends JsonBindingSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JsonBindingSupportConfig> Nested classes/interfaces inherited from interface io.helidon.http.media.MediaSupportConfig
MediaSupportConfig.Builder, MediaSupportConfig.BuilderBase<BUILDER extends MediaSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MediaSupportConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionTypes accepted by this media support.build()Create a new instance of the runtime type from this config object.Content type to use if not configured (in response headers for server, and in request headers for client).booleanget()inthashCode()JSON binding instance to use for serialization and deserialization.name()Name of the support.toString()Methods inherited from class io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
acceptedMediaTypes, contentType, name
-
Constructor Details
-
JsonBindingSupportConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.FactoryCreate a new instance of the runtime type from this config object.- Specified by:
buildin interfacePrototype.Factory<JsonBindingSupport>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<JsonBindingSupport>
-
jsonBinding
Description copied from interface:JsonBindingSupportConfigJSON binding instance to use for serialization and deserialization.- Specified by:
jsonBindingin interfaceJsonBindingSupportConfig- Returns:
- JSON binding instance
-
toString
- Overrides:
toStringin classMediaSupportConfig.BuilderBase.MediaSupportConfigImpl
-
equals
- Overrides:
equalsin classMediaSupportConfig.BuilderBase.MediaSupportConfigImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classMediaSupportConfig.BuilderBase.MediaSupportConfigImpl
-
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
-