MediaContext (media.common) Configuration

Type: io.helidon.media.common.MediaContext

Configuration options

Required configuration options
keytypedefault valuedescription
services

io.helidon.media.common.spi.MediaSupportProvider[] (service provider interface)

 

Configures this Builder from the supplied Config. <table class="config"> <caption>Optional configuration parameters</caption> <tr> <th>key</th> <th>description</th> </tr> <tr> <td>register-defaults</td> <td>Whether to register default reader and writers</td> </tr> <tr> <td>max-buffered-entity-size</td> <td>Maximum decoded input bytes per materializing conversion; default 1048576 (1 MiB).</td> </tr> <tr> <td>discover-services</td> <td>Whether to discover services via service loader</td> </tr> <tr> <td>filter-services</td> <td>Whether to filter discovered services by service names in services section</td> </tr> <tr> <td>services</td> <td>Configuration section for each service. Each entry has to have "name" parameter. It is also used for filtering of loaded services.</td> </tr> </table>

Optional configuration options
keytypedefault valuedescription
discover-services

boolean

false

Whether Java Service Loader should be used to load MediaSupportProvider.

filter-services

boolean

false

Whether services loaded by Java Service Loader should be filtered. All of the services which should pass the filter, have to be present under services section of configuration.

max-buffered-entity-size

long

1048576

Maximum decoded input bytes per materializing conversion, including each multipart part. Zero permits only empty input; negative values are rejected. Direct streams and streaming readers are excluded. This is an input budget, not an object-graph size limit.

register-defaults

boolean

true

Whether default readers and writers should be registered.