Module io.helidon.http.media.json
Package io.helidon.http.media.json
Class JsonSupportConfig.BuilderBase.JsonSupportConfigImpl
java.lang.Object
io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
io.helidon.http.media.json.JsonSupportConfig.BuilderBase.JsonSupportConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<JsonSupport>,JsonSupportConfig,MediaSupportConfig,Supplier<JsonSupport>
- Enclosing class:
JsonSupportConfig.BuilderBase<BUILDER extends JsonSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JsonSupportConfig>
protected static class JsonSupportConfig.BuilderBase.JsonSupportConfigImpl
extends MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
implements JsonSupportConfig, Supplier<JsonSupport>
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.JsonSupportConfig
JsonSupportConfig.Builder, JsonSupportConfig.BuilderBase<BUILDER extends JsonSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JsonSupportConfig> 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
ConstructorsModifierConstructorDescriptionprotectedJsonSupportConfigImpl(JsonSupportConfig.BuilderBase<?, ?> builder) Create 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()name()Name of the support.toString()Methods inherited from class io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
acceptedMediaTypes, contentType, name
-
Constructor Details
-
JsonSupportConfigImpl
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<JsonSupport>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<JsonSupport>
-
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_UTF_8
-