Package io.helidon.servicecommon.rest
Interface RestServiceSettings
-
public interface RestServiceSettingsCommon settings across REST services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRestServiceSettings.BuilderBuilder forRestServiceSettings.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RestServiceSettings.Builderbuilder()Creates a builder to construct a new instance.static RestServiceSettingscreate()Creates a new instance with default settings.static RestServiceSettingscreate(Config config)Creates a new instance using values from the provided config.CrossOriginConfigcrossOriginConfig()Returns the cross-origin config settings to be used for the service's endpoint.Stringrouting()Returns the routing name to be used for the service's endpoint.StringwebContext()Returns the web context at which the service's endpoint can be accessed.
-
-
-
Method Detail
-
create
static RestServiceSettings create()
Creates a new instance with default settings.- Returns:
- new defaulted settings
-
create
static RestServiceSettings create(Config config)
Creates a new instance using values from the provided config.- Parameters:
config-Confignode possibly containing REST service settings- Returns:
- new initialized settings
-
builder
static RestServiceSettings.Builder builder()
Creates a builder to construct a new instance.- Returns:
- new builder with defaulted settings
-
webContext
String webContext()
Returns the web context at which the service's endpoint can be accessed.- Returns:
- web context for the endpoint
-
routing
String routing()
Returns the routing name to be used for the service's endpoint.- Returns:
- routing name
-
crossOriginConfig
CrossOriginConfig crossOriginConfig()
Returns the cross-origin config settings to be used for the service's endpoint.- Returns:
- cross-origin settings
-
-