Module io.helidon.openapi
Package io.helidon.openapi
Class OpenApiUiBase.Builder<B extends OpenApiUiBase.Builder<B,T>,T extends OpenApiUi>
java.lang.Object
io.helidon.openapi.OpenApiUiBase.Builder<B,T>
- Type Parameters:
T- type of theOpenApiUiBaseto be builtB- type of the builder for T
- All Implemented Interfaces:
Builder<B,,T> OpenApiUi.Builder<B,,T> Supplier<T>
- Enclosing class:
- OpenApiUiBase
public abstract static class OpenApiUiBase.Builder<B extends OpenApiUiBase.Builder<B,T>,T extends OpenApiUi>
extends Object
implements OpenApiUi.Builder<B,T>
Common base builder implementation for creating a new
OpenApiUi.-
Field Summary
Fields inherited from interface io.helidon.openapi.OpenApiUi.Builder
ENABLED_CONFIG_KEY, OPENAPI_UI_CONFIG_KEY, OPTIONS_CONFIG_KEY, WEB_CONTEXT_CONFIG_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocumentPreparer(Function<MediaType, String> documentPreparer) Assigns how the OpenAPI UI can obtain a formatted document for a given media type.isEnabled(boolean isEnabled) Sets whether the UI should be enabled.openApiSupportWebContext(String openApiWebContext) Assigns the web context theOpenAPISupportinstance uses.options()Merges implementation-specific UI options.webContext(String webContext) Sets the entire web context (not just the suffix) where the UI response.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.openapi.OpenApiUi.Builder
build, config, identity
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
options
Description copied from interface:OpenApiUi.BuilderMerges implementation-specific UI options.- Specified by:
optionsin interfaceOpenApiUi.Builder<B extends OpenApiUiBase.Builder<B,T>, T extends OpenApiUi> - Parameters:
options- the options to for the UI to merge- Returns:
- updated builder
-
isEnabled
Description copied from interface:OpenApiUi.BuilderSets whether the UI should be enabled.- Specified by:
isEnabledin interfaceOpenApiUi.Builder<B extends OpenApiUiBase.Builder<B,T>, T extends OpenApiUi> - Parameters:
isEnabled- true/false- Returns:
- updated builder
-
webContext
Description copied from interface:OpenApiUi.BuilderSets the entire web context (not just the suffix) where the UI response.- Specified by:
webContextin interfaceOpenApiUi.Builder<B extends OpenApiUiBase.Builder<B,T>, T extends OpenApiUi> - Parameters:
webContext- entire web context (path) where the UI responds- Returns:
- updated builder
-
documentPreparer
Description copied from interface:OpenApiUi.BuilderAssigns how the OpenAPI UI can obtain a formatted document for a given media type.Developers typically do not invoke this method. Helidon invokes it internally.
- Specified by:
documentPreparerin interfaceOpenApiUi.Builder<B extends OpenApiUiBase.Builder<B,T>, T extends OpenApiUi> - Parameters:
documentPreparer- the function for obtaining the formatted document- Returns:
- updated builder
-
openApiSupportWebContext
Description copied from interface:OpenApiUi.BuilderAssigns the web context theOpenAPISupportinstance uses.Developers typically do not invoke this method. Helidon invokes it internally.
- Specified by:
openApiSupportWebContextin interfaceOpenApiUi.Builder<B extends OpenApiUiBase.Builder<B,T>, T extends OpenApiUi> - Parameters:
openApiWebContext- the web context used by theOpenAPISupportservice- Returns:
- updated builder
-
openApiSupportWebContext
- Returns:
- OpenAPI web context
-
documentPreparer
- Returns:
- document preparer
-
options
-