Class JsonRpcHandlers.Builder
java.lang.Object
io.helidon.webserver.jsonrpc.JsonRpcHandlers.BuilderBase<JsonRpcHandlers.Builder, JsonRpcHandlers>
io.helidon.webserver.jsonrpc.JsonRpcHandlers.Builder
- All Implemented Interfaces:
Prototype.Builder<JsonRpcHandlers.Builder, JsonRpcHandlers>, Builder<JsonRpcHandlers.Builder, JsonRpcHandlers>, Supplier<JsonRpcHandlers>
- Enclosing interface:
JsonRpcHandlers
public static class JsonRpcHandlers.Builder
extends JsonRpcHandlers.BuilderBase<JsonRpcHandlers.Builder, JsonRpcHandlers>
implements Builder<JsonRpcHandlers.Builder, JsonRpcHandlers>
Fluent API builder for
JsonRpcHandlers.-
Nested Class Summary
Nested classes/interfaces inherited from class JsonRpcHandlers.BuilderBase
JsonRpcHandlers.BuilderBase.JsonRpcHandlersImplModifier 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 JsonRpcHandlers.BuilderBase
addExceptionMap, addHandlersMap, clearErrorHandler, errorHandler, errorHandler, exception, exceptionMap, exceptionMap, from, from, handlersMap, handlersMap, method, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionaddExceptionMap(Map<Class<? extends Throwable>, ? extends JsonRpcExceptionHandler> exceptionMap) Return a map of throwable to exception handlers.addHandlersMap(Map<String, ? extends JsonRpcHandler> handlersMap) Return a map of method names to handlers.Clear existing value of errorHandler.Get access to the error handler, if registered.errorHandler(JsonRpcErrorHandler errorHandler) Get access to the error handler, if registered.exception(Class<? extends Throwable> key, JsonRpcExceptionHandler exception) Return a map of throwable to exception handlers.Map<Class<? extends Throwable>, JsonRpcExceptionHandler> Return a map of throwable to exception handlers.exceptionMap(Map<Class<? extends Throwable>, ? extends JsonRpcExceptionHandler> exceptionMap) Return a map of throwable to exception handlers.from(JsonRpcHandlers prototype) Update this builder from an existing prototype instance.from(JsonRpcHandlers.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Return a map of method names to handlers.handlersMap(Map<String, ? extends JsonRpcHandler> handlersMap) Return a map of method names to handlers.method(String key, JsonRpcHandler method) Return a map of method names to handlers.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 JsonRpcHandlersget()default JsonRpcHandlers.Builderidentity()Instance of this builder as the correct type.default JsonRpcHandlers.Builderupdate(Consumer<JsonRpcHandlers.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault JsonRpcHandlers.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<JsonRpcHandlers.Builder, JsonRpcHandlers>- 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<JsonRpcHandlers.Builder, JsonRpcHandlers>- Returns:
- instance of the built type
-