Package io.helidon.servicecommon.rest
Interface RestServiceSettings.Builder
- All Superinterfaces:
Builder<RestServiceSettings.Builder,
,RestServiceSettings> Supplier<RestServiceSettings>
- Enclosing interface:
- RestServiceSettings
public static interface RestServiceSettings.Builder
extends Builder<RestServiceSettings.Builder,RestServiceSettings>
Builder for
RestServiceSettings
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates theRestServiceSettings
instance from the builder settings.Updates settings using the providedConfig
node for the service of interest.crossOriginConfig
(CrossOriginConfig crossOriginConfig) Sets the cross-origin settings from existing settings (not from a builder).crossOriginConfig
(CrossOriginConfig.Builder crossOriginConfigBuilder) Sets the cross-origin config builder for use in establishing CORS support for the service endpoints.Sets the routing name to use for setting up the service's endpoint.webContext
(String webContext) Sets the web context to use for the service's endpoint.
-
Field Details
-
ROUTING_NAME_CONFIG_KEY
Config key for the routing name setting.- See Also:
-
WEB_CONTEXT_CONFIG_KEY
Config key for the web context setting.- See Also:
-
-
Method Details
-
webContext
Sets the web context to use for the service's endpoint.- Parameters:
webContext
- web context- Returns:
- updated builder
-
routing
Sets the routing name to use for setting up the service's endpoint.- Parameters:
routing
- routing name as defined in the server settings- Returns:
- updated builder
-
crossOriginConfig
Sets the cross-origin config builder for use in establishing CORS support for the service endpoints.- Parameters:
crossOriginConfigBuilder
- builder for the CORS settings- Returns:
- updated builder
-
crossOriginConfig
Sets the cross-origin settings from existing settings (not from a builder).- Parameters:
crossOriginConfig
- existing cross-origin settings- Returns:
- updated builder
-
config
Updates settings using the providedConfig
node for the service of interest.- Parameters:
serviceConfig
- config node for the service- Returns:
- updated builder
-
build
RestServiceSettings build()Creates theRestServiceSettings
instance from the builder settings.- Specified by:
build
in interfaceBuilder<RestServiceSettings.Builder,
RestServiceSettings> - Returns:
- new
RestServiceSettings
-