- 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 DefaultMediaSupportbuild()Build the instance from this builder.DefaultMediaSupport.BuilderbyteChannelRetrySchema(RetrySchema schema)Set specificRetrySchemato the byte channel.DefaultMediaSupport.Builderconfig(Config config)Configures thisDefaultMediaSupport.Builderfrom the suppliedConfig.DefaultMediaSupport.BuilderincludeStackTraces(boolean includeStackTraces)Whether stack traces should be included in response.
-
-
-
Method Detail
-
build
public DefaultMediaSupport build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin 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 specificRetrySchemato the byte channel.- Parameters:
schema- retry schema- Returns:
- updated builder instance
-
config
public DefaultMediaSupport.Builder config(Config config)
Configures thisDefaultMediaSupport.Builderfrom 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
-
-