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 JsonSupportConfig
JsonSupportConfig.Builder, JsonSupportConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forJsonSupport.static classJsonSupportConfig.BuilderBase<BUILDER extends JsonSupportConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends JsonSupportConfig>Fluent API builder base forJsonSupportConfig.Nested classes/interfaces inherited from interface MediaSupportConfig
MediaSupportConfig.Builder, MediaSupportConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forMediaSupportConfig.static classMediaSupportConfig.BuilderBase<BUILDER extends MediaSupportConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends MediaSupportConfig>Fluent API builder base forMediaSupportConfig. -
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 runtime instance from this prototype.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 MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
acceptedMediaTypes, contentType, nameModifier and TypeMethodDescriptionTypes accepted by this media support.Content type to use if not configured (in response headers for server, and in request headers for client).name()Name of the support.
-
Constructor Details
-
JsonSupportConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
build
Create a new runtime instance from this prototype.- 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
-