- java.lang.Object
-
- io.helidon.media.common.DefaultMediaSupport.Builder
-
- All Implemented Interfaces:
Builder<DefaultMediaSupport>
,Supplier<DefaultMediaSupport>
- Enclosing class:
- DefaultMediaSupport
public static class DefaultMediaSupport.Builder extends Object implements Builder<DefaultMediaSupport>
Default media support builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultMediaSupport
build()
Build the instance from this builder.DefaultMediaSupport.Builder
byteChannelRetrySchema(RetrySchema schema)
Set specificRetrySchema
to the byte channel.DefaultMediaSupport.Builder
config(Config config)
Configures thisDefaultMediaSupport.Builder
from the suppliedConfig
.DefaultMediaSupport.Builder
includeStackTraces(boolean includeStackTraces)
Whether stack traces should be included in response.
-
-
-
Method Detail
-
build
public DefaultMediaSupport build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DefaultMediaSupport>
- Returns:
- instance of the built type
-
includeStackTraces
public DefaultMediaSupport.Builder includeStackTraces(boolean includeStackTraces)
Whether stack traces should be included in response.- Parameters:
includeStackTraces
- include stack trace- Returns:
- updated builder instance
-
byteChannelRetrySchema
public DefaultMediaSupport.Builder byteChannelRetrySchema(RetrySchema schema)
Set specificRetrySchema
to the byte channel.- Parameters:
schema
- retry schema- Returns:
- updated builder instance
-
config
public DefaultMediaSupport.Builder config(Config config)
Configures thisDefaultMediaSupport.Builder
from the suppliedConfig
.Optional configuration parameters key description include-stack-traces Whether stack traces should be included in response - Parameters:
config
- media support config- Returns:
- updated builder instance
-
-