Package io.helidon.http.media.jackson
Class JacksonSupportConfig.BuilderBase.JacksonSupportConfigImpl
java.lang.Object
io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
io.helidon.http.media.jackson.JacksonSupportConfig.BuilderBase.JacksonSupportConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<JacksonSupport>,JacksonSupportConfig,MediaSupportConfig,Supplier<JacksonSupport>
- Enclosing class:
JacksonSupportConfig.BuilderBase<BUILDER extends JacksonSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JacksonSupportConfig>
protected static class JacksonSupportConfig.BuilderBase.JacksonSupportConfigImpl
extends MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
implements JacksonSupportConfig, Supplier<JacksonSupport>
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.jackson.JacksonSupportConfig
JacksonSupportConfig.Builder, JacksonSupportConfig.BuilderBase<BUILDER extends JacksonSupportConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends JacksonSupportConfig> 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
ConstructorsModifierConstructorDescriptionprotectedJacksonSupportConfigImpl(JacksonSupportConfig.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.JacksonObjectMapperinstance.Jackson configuration properties.toString()Methods inherited from class io.helidon.http.media.MediaSupportConfig.BuilderBase.MediaSupportConfigImpl
acceptedMediaTypes, contentType, name
-
Constructor Details
-
JacksonSupportConfigImpl
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<JacksonSupport>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<JacksonSupport>
-
objectMapper
Description copied from interface:JacksonSupportConfigJacksonObjectMapperinstance.- Specified by:
objectMapperin interfaceJacksonSupportConfig- Returns:
- jackson object mapper instance
-
properties
Description copied from interface:JacksonSupportConfigJackson configuration properties. Properties are being ignored if specificJacksonSupportis set. Onlybooleanconfiguration values are supported.- Specified by:
propertiesin interfaceJacksonSupportConfig- Returns:
- jackson config properties
-
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
-