- All Superinterfaces:
Prototype.Api
,Prototype.Factory<MediaContext>
- All Known Implementing Classes:
MediaContextConfig.BuilderBase.MediaContextConfigImpl
Interface generated from definition. Please add javadoc to the definition interface.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forMediaContext
.static class
MediaContextConfig.BuilderBase<BUILDER extends MediaContextConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends MediaContextConfig> Fluent API builder base forMediaContext
. -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaContextConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static MediaContextConfig.Builder
builder
(MediaContextConfig instance) Create a new fluent API builder from an existing instance.static MediaContextConfig
create()
Create a new instance with default values.static MediaContextConfig
Create a new instance from configuration.fallback()
Existing context to be used as a fallback for this context.Media supports to use.boolean
Should we register defaults of Helidon, such as String media support.Methods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
mediaSupports
List<MediaSupport> mediaSupports()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.- Returns:
- media supports
-
fallback
Optional<MediaContext> fallback()Existing context to be used as a fallback for this context.- Returns:
- media context to use if supports configured on this request cannot provide a good result
-
registerDefaults
boolean registerDefaults()Should we register defaults of Helidon, such as String media support.- Returns:
- whether to register default media supports
-