java.lang.Object
io.helidon.media.common.MediaContext
Media support.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaContext.Builder
builder()
Create a newMediaContext.Builder
instance.static MediaContext
create()
Create a new instance with default readers and writers registered to the contexts.static MediaContext
Create a new instance based on the configuration.static MediaContext
empty()
Creates new empty instance without registered defaults.Get the configured reader context.Get the configured writer context.
-
Method Details
-
create
Create a new instance with default readers and writers registered to the contexts.- Returns:
- instance with defaults
-
create
Create a new instance based on the configuration.- Parameters:
config
- aConfig
- Returns:
- instance based on config
-
empty
Creates new empty instance without registered defaults.- Returns:
- empty instance
-
builder
Create a newMediaContext.Builder
instance.- Returns:
- a new
MediaContext.Builder
-
readerContext
Get the configured reader context.- Returns:
- MessageBodyReaderContext
-
writerContext
Get the configured writer context.- Returns:
- MessageBodyWriterContext
-