Class SmileSupportConfig.Builder
java.lang.Object
io.helidon.http.media.MediaSupportConfig.BuilderBase<SmileSupportConfig.Builder, SmileSupportConfig>
io.helidon.http.media.json.smile.SmileSupportConfig.BuilderBase<SmileSupportConfig.Builder, SmileSupportConfig>
io.helidon.http.media.json.smile.SmileSupportConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<SmileSupportConfig.Builder, SmileSupportConfig>, Builder<SmileSupportConfig.Builder, SmileSupport>, ConfigBuilderSupport.ConfiguredBuilder<SmileSupportConfig.Builder, SmileSupportConfig>, Supplier<SmileSupport>
- Enclosing interface:
SmileSupportConfig
public static class SmileSupportConfig.Builder
extends SmileSupportConfig.BuilderBase<SmileSupportConfig.Builder, SmileSupportConfig>
implements Builder<SmileSupportConfig.Builder, SmileSupport>
Fluent API builder for
SmileSupport.-
Nested Class Summary
Nested classes/interfaces inherited from class SmileSupportConfig.BuilderBase
SmileSupportConfig.BuilderBase.SmileSupportConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class MediaSupportConfig.BuilderBase
MediaSupportConfig.BuilderBase.MediaSupportConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class SmileSupportConfig.BuilderBase
config, from, from, jsonBinding, jsonBinding, jsonBinding, jsonBinding, jsonBinding, preBuildPrototype, smileConfig, smileConfig, smileConfig, smileConfig, toString, validatePrototypeModifier and TypeMethodDescriptionUpdate builder from configuration (node of this type).from(SmileSupportConfig prototype) Update this builder from an existing prototype instance.from(SmileSupportConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.JSON binding instance to use for serialization and deserialization.jsonBinding(JsonBinding jsonBinding) JSON binding instance to use for serialization and deserialization.jsonBinding(JsonBindingConfig jsonBinding) JSON binding instance to use for serialization and deserialization.jsonBinding(Consumer<JsonBindingConfig.Builder> consumer) JSON binding instance to use for serialization and deserialization.jsonBinding(Supplier<? extends JsonBinding> supplier) JSON binding instance to use for serialization and deserialization.protected voidHandles providers and decorators.Smile generator configuration.smileConfig(SmileConfig smileConfig) Smile generator configuration.smileConfig(Consumer<SmileConfig.Builder> consumer) Smile generator configuration.smileConfig(Supplier<? extends SmileConfig> supplier) Smile generator configuration.toString()protected voidValidates required properties.Methods inherited from class MediaSupportConfig.BuilderBase
acceptedMediaTypes, acceptedMediaTypes, addAcceptedMediaType, addAcceptedMediaTypes, clearAcceptedMediaTypes, config, contentType, contentType, contentType, contentType, from, from, name, nameModifier and TypeMethodDescriptionTypes accepted by this media support.acceptedMediaTypes(Set<? extends MediaType> acceptedMediaTypes) Types accepted by this media support.addAcceptedMediaType(MediaType acceptedMediaType) Types accepted by this media support.addAcceptedMediaTypes(Set<? extends MediaType> acceptedMediaTypes) Types accepted by this media support.Clear all acceptedMediaTypes.config()Configuration used to configure this instance.Content type to use if not configured (in response headers for server, and in request headers for client).contentType(HttpMediaType contentType) Content type to use if not configured (in response headers for server, and in request headers for client).contentType(Consumer<HttpMediaType.Builder> consumer) Content type to use if not configured (in response headers for server, and in request headers for client).contentType(Supplier<? extends HttpMediaType> supplier) Content type to use if not configured (in response headers for server, and in request headers for client).from(MediaSupportConfig prototype) Update this builder from an existing prototype instance.from(MediaSupportConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of the support.Name of the support.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault SmileSupportget()default SmileSupportConfig.Builderidentity()Instance of this builder as the correct type.default SmileSupportConfig.Builderupdate(Consumer<SmileSupportConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault SmileSupportConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<SmileSupportConfig.Builder, SmileSupportConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<SmileSupportConfig.Builder, SmileSupport>- Returns:
- instance of the built type
-