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 theMediaContextparent and overrides the existing one.default TmediaContext(Supplier<MediaContext> mediaContextSupplier) Sets theMediaContextparent and overrides the existing one.
-
Method Details
-
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
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
-