Package io.helidon.servicecommon.rest
Interface RestServiceSettings.Builder
-
- All Superinterfaces:
Builder<RestServiceSettings>
,Supplier<RestServiceSettings>
- Enclosing interface:
- RestServiceSettings
public static interface RestServiceSettings.Builder extends Builder<RestServiceSettings>
Builder forRestServiceSettings
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROUTING_NAME_CONFIG_KEY
Config key for the routing name setting.static String
WEB_CONTEXT_CONFIG_KEY
Config key for the web context setting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestServiceSettings
build()
Creates theRestServiceSettings
instance from the builder settings.RestServiceSettings.Builder
config(Config serviceConfig)
Updates settings using the providedConfig
node for the service of interest.RestServiceSettings.Builder
crossOriginConfig(CrossOriginConfig crossOriginConfig)
Sets the cross-origin settings from existing settings (not from a builder).RestServiceSettings.Builder
crossOriginConfig(CrossOriginConfig.Builder crossOriginConfigBuilder)
Sets the cross-origin config builder for use in establishing CORS support for the service endpoints.RestServiceSettings.Builder
routing(String routing)
Sets the routing name to use for setting up the service's endpoint.RestServiceSettings.Builder
webContext(String webContext)
Sets the web context to use for the service's endpoint.
-
-
-
Field Detail
-
ROUTING_NAME_CONFIG_KEY
static final String ROUTING_NAME_CONFIG_KEY
Config key for the routing name setting.- See Also:
- Constant Field Values
-
WEB_CONTEXT_CONFIG_KEY
static final String WEB_CONTEXT_CONFIG_KEY
Config key for the web context setting.- See Also:
- Constant Field Values
-
-
Method Detail
-
webContext
RestServiceSettings.Builder webContext(String webContext)
Sets the web context to use for the service's endpoint.- Parameters:
webContext
- web context- Returns:
- updated builder
-
routing
RestServiceSettings.Builder routing(String 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
RestServiceSettings.Builder crossOriginConfig(CrossOriginConfig.Builder crossOriginConfigBuilder)
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
RestServiceSettings.Builder crossOriginConfig(CrossOriginConfig crossOriginConfig)
Sets the cross-origin settings from existing settings (not from a builder).- Parameters:
crossOriginConfig
- existing cross-origin settings- Returns:
- updated builder
-
config
RestServiceSettings.Builder config(Config serviceConfig)
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>
- Returns:
- new
RestServiceSettings
-
-