Class ErrorHandling.Builder
java.lang.Object
io.helidon.webserver.ErrorHandling.BuilderBase<ErrorHandling.Builder, ErrorHandling>
io.helidon.webserver.ErrorHandling.Builder
- All Implemented Interfaces:
Prototype.Builder<ErrorHandling.Builder, ErrorHandling>, Builder<ErrorHandling.Builder, ErrorHandling>, ConfigBuilderSupport.ConfiguredBuilder<ErrorHandling.Builder, ErrorHandling>, Supplier<ErrorHandling>
- Enclosing interface:
ErrorHandling
public static class ErrorHandling.Builder
extends ErrorHandling.BuilderBase<ErrorHandling.Builder, ErrorHandling>
implements Builder<ErrorHandling.Builder, ErrorHandling>
Fluent API builder for
ErrorHandling.-
Nested Class Summary
Nested classes/interfaces inherited from class ErrorHandling.BuilderBase
ErrorHandling.BuilderBase.ErrorHandlingImplModifier 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 ErrorHandling.BuilderBase
config, config, from, from, includeEntity, includeEntity, logAllMessages, logAllMessages, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Update builder from configuration (node of this type).from(ErrorHandling prototype) Update this builder from an existing prototype instance.from(ErrorHandling.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanWhether to include a response entity when mapping aRequestExceptionusing aDirectHandler.includeEntity(boolean includeEntity) Whether to include a response entity when mapping aRequestExceptionusing aDirectHandler.booleanWhether to log all messages in aRequestExceptionor not.logAllMessages(boolean logAllMessages) Whether to log all messages in aRequestExceptionor not.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ErrorHandlingget()default ErrorHandling.Builderidentity()Instance of this builder as the correct type.default ErrorHandling.Builderupdate(Consumer<ErrorHandling.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ErrorHandling.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<ErrorHandling.Builder, ErrorHandling>- 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<ErrorHandling.Builder, ErrorHandling>- Returns:
- instance of the built type
-