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 of
MediaContext
that can be parented.-
Method Summary
Modifier and TypeMethodDescriptionmediaContext
(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 Details
-
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
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
-