Class HttpConfig.Builder
java.lang.Object
io.helidon.http.HttpConfig.BuilderBase<HttpConfig.Builder, HttpConfig>
io.helidon.http.HttpConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<HttpConfig.Builder, HttpConfig>, Builder<HttpConfig.Builder, HttpConfig>, ConfigBuilderSupport.ConfiguredBuilder<HttpConfig.Builder, HttpConfig>, Supplier<HttpConfig>
- Enclosing interface:
HttpConfig
public static class HttpConfig.Builder
extends HttpConfig.BuilderBase<HttpConfig.Builder, HttpConfig>
implements Builder<HttpConfig.Builder, HttpConfig>
Fluent API builder for
HttpConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class HttpConfig.BuilderBase
HttpConfig.BuilderBase.HttpConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class HttpConfig.BuilderBase
config, config, from, from, log, log, log, log, maxBufferedEntitySize, maxBufferedEntitySize, maxHeadersSize, maxHeadersSize, preBuildPrototype, toString, validatePrototype, validateRequestHeaders, validateRequestHeaders, validateResponseHeaders, validateResponseHeadersModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Update builder from configuration (node of this type).from(HttpConfig prototype) Update this builder from an existing prototype instance.from(HttpConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.log()HTTP Log configuration.log(HttpLogConfig log) HTTP Log configuration.log(Consumer<HttpLogConfig.Builder> consumer) HTTP Log configuration.log(Supplier<? extends HttpLogConfig> supplier) HTTP Log configuration.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().maxBufferedEntitySize(Size maxBufferedEntitySize) Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().intConfigure the maximum allowed headers size, which must be greater than0.maxHeadersSize(int maxHeadersSize) Configure the maximum allowed headers size, which must be greater than0.protected voidHandles providers and decorators.toString()protected voidValidates required properties.booleanWhether to validate request headers.validateRequestHeaders(boolean validateRequestHeaders) Whether to validate request headers.booleanWhether to validate response headers.validateResponseHeaders(boolean validateResponseHeaders) Whether to validate response headers.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault HttpConfigget()default HttpConfig.Builderidentity()Instance of this builder as the correct type.default HttpConfig.Builderupdate(Consumer<HttpConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault HttpConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<HttpConfig.Builder, HttpConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<HttpConfig.Builder, HttpConfig>- Returns:
- instance of the built type
-