Module io.helidon.media.common
Package io.helidon.media.common
Interface ParentingMediaContextBuilder<T>
-
- Type Parameters:
T
- Type of the class which this builder support is added to.
- All Known Implementing Classes:
WebClient.Builder
,WebServer.Builder
public interface ParentingMediaContextBuilder<T>
Builder ofMediaContext
that can be parented.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
mediaContext(MediaContext mediaContext)
Sets theMediaContext
parent and overrides the existing one.default T
mediaContext(Supplier<MediaContext> mediaContextSupplier)
Sets theMediaContext
parent and overrides the existing one.
-
-
-
Method Detail
-
mediaContext
T mediaContext(MediaContext mediaContext)
Sets theMediaContext
parent and overrides the existing one. This method discards all previously registered readers and writers via builder.- Parameters:
mediaContext
- media context- Returns:
- updated instance of the builder
-
mediaContext
default T mediaContext(Supplier<MediaContext> mediaContextSupplier)
Sets theMediaContext
parent and overrides the existing one. This method discards all previously registered readers and writers via builder.- Parameters:
mediaContextSupplier
- supplier for media context- Returns:
- updated instance of the builder
-
-