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
ConstructorsModifierConstructorDescriptionprotected
MediaContextConfigImpl
(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.boolean
fallback()
Existing context to be used as a fallback for this context.get()
int
hashCode()
Media supports to use.boolean
Should 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.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<MediaContext>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<MediaContext>
-
mediaSupports
Description copied from interface:MediaContextConfig
Media 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:
mediaSupports
in interfaceMediaContextConfig
- Returns:
- media supports
-
fallback
Description copied from interface:MediaContextConfig
Existing context to be used as a fallback for this context.- Specified by:
fallback
in 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:MediaContextConfig
Should we register defaults of Helidon, such as String media support.- Specified by:
registerDefaults
in interfaceMediaContextConfig
- Returns:
- whether to register default media supports
-
toString
-
equals
-
hashCode
public int hashCode()
-