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 ofMediaContextthat can be parented.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TmediaContext(MediaContext mediaContext)Sets theMediaContextparent and overrides the existing one.default TmediaContext(Supplier<MediaContext> mediaContextSupplier)Sets theMediaContextparent and overrides the existing one.
-
-
-
Method Detail
-
mediaContext
T mediaContext(MediaContext mediaContext)
Sets theMediaContextparent 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 theMediaContextparent 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
-
-