Package io.helidon.microprofile.server
Interface RoutingBuilders
public interface RoutingBuilders
Provides
HttpRouting.Builder instances (for the default and the actual)
for a Helidon MP service, based on configuration for the component (if any)
and defaults otherwise.-
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingBuildersPrepares the default and actualHttpRouting.Builderinstances based on the "routing" configuration for the specific component configuration.static RoutingBuildersPrepares the default and actualHttpRouting.Builderinstances based on the "routing" configuration for the specific component.static RoutingBuilderscreateFromRoutingName(String routingName) Prepares the default and actualHttpRouting.Builderinstances based on a routing name.Default routing builder.Routing for the component, may be the default.
-
Method Details
-
defaultRoutingBuilder
HttpRouting.Builder defaultRoutingBuilder()Default routing builder.- Returns:
- the default
Routing.Builderfor the component
-
routingBuilder
HttpRouting.Builder routingBuilder()Routing for the component, may be the default.- Returns:
- the actual
Routing.Builderfor the component; might be the default
-
create
Prepares the default and actualHttpRouting.Builderinstances based on the "routing" configuration for the specific component.- Parameters:
componentName- config key under which "routing" config might exist for the component of interest- Returns:
RoutingBuildersbased on the named config (or default)
-
create
Prepares the default and actualHttpRouting.Builderinstances based on the "routing" configuration for the specific component configuration.- Parameters:
componentConfig- the configuration for the calling service- Returns:
RoutingBuildersbased on the config (or default)
-
createFromRoutingName
Prepares the default and actualHttpRouting.Builderinstances based on a routing name. If routing name is null or blank or@default, then the default routing will be used for the service endpoint routing as well.- Parameters:
routingName- name of the routing to use for the service's endpoint routing- Returns:
RoutingBuilderscontaining the default and service's routing
-