- java.lang.Object
-
- io.helidon.openapi.internal.OpenAPIConfigImpl.Builder
-
- All Implemented Interfaces:
io.helidon.common.Builder<io.smallrye.openapi.api.OpenApiConfig>,Supplier<io.smallrye.openapi.api.OpenApiConfig>
- Enclosing class:
- OpenAPIConfigImpl
public static final class OpenAPIConfigImpl.Builder extends Object implements io.helidon.common.Builder<io.smallrye.openapi.api.OpenApiConfig>
Fluent builder forOpenAPIConfigImpl.The caller can set values individually by invoking the method corresponding to each value, or by passing a
Configobject with keys as follows:Configuration for Setting OpenAPIConfig Key "model.reader" "filter" "servers" "servers.path" "servers.operation"
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAPIConfigImpl.BuilderaddOperationServer(String operationID, String operationServer)Adds an operation server.OpenAPIConfigImpl.BuilderaddPathServer(String path, String pathServer)Adds a path server.OpenAPIConfigImpl.BuilderaddServer(String server)Adds server.OpenAPIConfigImpl.BuilderapplicationPathDisable(Boolean value)Sets whether the app path search should be disabled.io.smallrye.openapi.api.OpenApiConfigbuild()OpenAPIConfigImpl.Builderconfig(Config config)Sets the builder's attributes according to the corresponding entries (if present) in the specified openapiConfigobject.OpenAPIConfigImpl.BuildercustomSchemaRegistryClass(String className)Sets the custom schema registry class.OpenAPIConfigImpl.Builderfilter(String filter)Sets the developer-provided OpenAPI filter.OpenAPIConfigImpl.BuildermodelReader(String modelReader)Sets the developer-provided OpenAPI model reader.OpenAPIConfigImpl.BuilderoperationServers(String operationID, String operationServers)Sets operation servers.OpenAPIConfigImpl.BuilderpathServers(String path, String pathServers)Sets path servers.OpenAPIConfigImpl.BuilderscanDisable(boolean value)Sets whether annotation scanning should be disabled.OpenAPIConfigImpl.BuilderschemaReferencesEnable(Boolean value)Sets whether schema references are enabled.OpenAPIConfigImpl.Builderservers(String servers)Sets servers.
-
-
-
Method Detail
-
build
public io.smallrye.openapi.api.OpenApiConfig build()
- Specified by:
buildin interfaceio.helidon.common.Builder<io.smallrye.openapi.api.OpenApiConfig>
-
config
public OpenAPIConfigImpl.Builder config(Config config)
Sets the builder's attributes according to the corresponding entries (if present) in the specified openapiConfigobject.- Parameters:
config- openapi Config object to process- Returns:
- updated builder
-
modelReader
public OpenAPIConfigImpl.Builder modelReader(String modelReader)
Sets the developer-provided OpenAPI model reader.- Parameters:
modelReader- model reader- Returns:
- updated builder
-
filter
public OpenAPIConfigImpl.Builder filter(String filter)
Sets the developer-provided OpenAPI filter.- Parameters:
filter- filter object- Returns:
- updated builder
-
operationServers
public OpenAPIConfigImpl.Builder operationServers(String operationID, String operationServers)
Sets operation servers.- Parameters:
operationID- operation IDoperationServers- comma-separated list of servers for the given operation- Returns:
- updated builder
-
addOperationServer
public OpenAPIConfigImpl.Builder addOperationServer(String operationID, String operationServer)
Adds an operation server.- Parameters:
operationID- operation ID for the server being addedoperationServer- the server being added- Returns:
- updated builder
-
pathServers
public OpenAPIConfigImpl.Builder pathServers(String path, String pathServers)
Sets path servers.- Parameters:
path- path for the servers being setpathServers- comma-list of servers for the given path- Returns:
- updated builder
-
addPathServer
public OpenAPIConfigImpl.Builder addPathServer(String path, String pathServer)
Adds a path server.- Parameters:
path- path for the server being addedpathServer- the server being added- Returns:
- updated builder
-
servers
public OpenAPIConfigImpl.Builder servers(String servers)
Sets servers.- Parameters:
servers- comma-list of servers- Returns:
- updated builder
-
addServer
public OpenAPIConfigImpl.Builder addServer(String server)
Adds server.- Parameters:
server- server to be added- Returns:
- updated builder
-
scanDisable
public OpenAPIConfigImpl.Builder scanDisable(boolean value)
Sets whether annotation scanning should be disabled.- Parameters:
value- new setting for annotation scanning disabled flag- Returns:
- updated builder
-
schemaReferencesEnable
public OpenAPIConfigImpl.Builder schemaReferencesEnable(Boolean value)
Sets whether schema references are enabled.- Parameters:
value- new setting for schema references enabled- Returns:
- updated builder
-
customSchemaRegistryClass
public OpenAPIConfigImpl.Builder customSchemaRegistryClass(String className)
Sets the custom schema registry class.- Parameters:
className- class to be assigned- Returns:
- updated builder
-
applicationPathDisable
public OpenAPIConfigImpl.Builder applicationPathDisable(Boolean value)
Sets whether the app path search should be disabled.- Parameters:
value- true/false- Returns:
- updated builder
-
-