Module io.helidon.http.media
Package io.helidon.http.media
Class MediaContextConfig.BuilderBase.MediaContextConfigImpl
java.lang.Object
io.helidon.http.media.MediaContextConfig.BuilderBase.MediaContextConfigImpl
- All Implemented Interfaces:
Prototype.Api,Prototype.Factory<MediaContext>,MediaContextConfig,Supplier<MediaContext>
- Enclosing class:
MediaContextConfig.BuilderBase<BUILDER extends MediaContextConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MediaContextConfig>
protected static class MediaContextConfig.BuilderBase.MediaContextConfigImpl
extends Object
implements MediaContextConfig, Supplier<MediaContext>
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.MediaContextConfig
MediaContextConfig.Builder, MediaContextConfig.BuilderBase<BUILDER extends MediaContextConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends MediaContextConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMediaContextConfigImpl(MediaContextConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.booleanfallback()Existing context to be used as a fallback for this context.get()inthashCode()Media supports to use.booleanShould we register defaults of Helidon, such as String media support.toString()
-
Constructor Details
-
MediaContextConfigImpl
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<MediaContext>- Returns:
- new configured runtime instance
-
get
- Specified by:
getin interfaceSupplier<MediaContext>
-
mediaSupports
Description copied from interface:MediaContextConfigMedia supports to use. This instance has priority over provider(s) discovered by service loader. The providers are used in order of calling this method, where the first support added is the first one to be queried for readers and writers.- Specified by:
mediaSupportsin interfaceMediaContextConfig- Returns:
- media supports
-
fallback
Description copied from interface:MediaContextConfigExisting context to be used as a fallback for this context.- Specified by:
fallbackin interfaceMediaContextConfig- Returns:
- media context to use if supports configured on this request cannot provide a good result
-
registerDefaults
public boolean registerDefaults()Description copied from interface:MediaContextConfigShould we register defaults of Helidon, such as String media support.- Specified by:
registerDefaultsin interfaceMediaContextConfig- Returns:
- whether to register default media supports
-
toString
-
equals
-
hashCode
public int hashCode()
-