Module io.helidon.servicecommon
Interface RestServiceSettings
Deprecated, for removal: This API element is subject to removal in a future version.
Common settings across REST services.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.Builder forRestServiceSettings. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestServiceSettings.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Creates a builder to construct a new instance.static RestServiceSettingscreate()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance with default settings.static RestServiceSettingsDeprecated, for removal: This API element is subject to removal in a future version.Creates a new instance using values from the provided config.Deprecated, for removal: This API element is subject to removal in a future version.Returns the cross-origin config settings to be used for the service's endpoint.booleanenabled()Deprecated, for removal: This API element is subject to removal in a future version.Whether this service is enabled and should be exposed.routing()Deprecated, for removal: This API element is subject to removal in a future version.Returns the routing name to be used for the service's endpoint.Deprecated, for removal: This API element is subject to removal in a future version.Returns the web context at which the service's endpoint can be accessed.
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance with default settings.- Returns:
- new defaulted settings
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance using values from the provided config.- Parameters:
config-Confignode possibly containing REST service settings- Returns:
- new initialized settings
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Creates a builder to construct a new instance.- Returns:
- new builder with defaulted settings
-
webContext
String webContext()Deprecated, for removal: This API element is subject to removal in a future version.Returns the web context at which the service's endpoint can be accessed.- Returns:
- web context for the endpoint
-
routing
String routing()Deprecated, for removal: This API element is subject to removal in a future version.Returns the routing name to be used for the service's endpoint.- Returns:
- routing name
-
crossOriginConfig
CrossOriginConfig crossOriginConfig()Deprecated, for removal: This API element is subject to removal in a future version.Returns the cross-origin config settings to be used for the service's endpoint.- Returns:
- cross-origin settings
-
enabled
boolean enabled()Deprecated, for removal: This API element is subject to removal in a future version.Whether this service is enabled and should be exposed.- Returns:
truefor enabled services
-
cors, or programmatic setup using theio.helidon.webserver.cors.CorsFeatureserver feature; as this class's reason for existence was mostly CORS, it will be removed in a future release of Helidon; implementHttpServicedirectly instead