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 StringROUTING_NAME_CONFIG_KEYConfig key for the routing name setting.static StringWEB_CONTEXT_CONFIG_KEYConfig key for the web context setting.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestServiceSettingsbuild()Creates theRestServiceSettingsinstance from the builder settings.RestServiceSettings.Builderconfig(Config serviceConfig)Updates settings using the providedConfignode for the service of interest.RestServiceSettings.BuildercrossOriginConfig(CrossOriginConfig crossOriginConfig)Sets the cross-origin settings from existing settings (not from a builder).RestServiceSettings.BuildercrossOriginConfig(CrossOriginConfig.Builder crossOriginConfigBuilder)Sets the cross-origin config builder for use in establishing CORS support for the service endpoints.RestServiceSettings.Builderrouting(String routing)Sets the routing name to use for setting up the service's endpoint.RestServiceSettings.BuilderwebContext(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 providedConfignode for the service of interest.- Parameters:
serviceConfig- config node for the service- Returns:
- updated builder
-
build
RestServiceSettings build()
Creates theRestServiceSettingsinstance from the builder settings.- Specified by:
buildin interfaceBuilder<RestServiceSettings>- Returns:
- new
RestServiceSettings
-
-