Package io.helidon.microprofile.server
Interface RoutingBuilders
-
public interface RoutingBuildersProvidesRouting.Builderinstances (for the default and the actual) for a Helidon MP service, based on configuration for the component (if any) and defaults otherwise.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static RoutingBuilderscreate(MpServiceContext context, Config componentConfig)Prepares the default and actualRouting.Builderinstances based on the "routing" configuration for the specific component configuration.static RoutingBuilderscreate(MpServiceContext context, String componentName)Prepares the default and actualRouting.Builderinstances based on the "routing" configuration for the specific component.Routing.BuilderdefaultRoutingBuilder()Routing.BuilderroutingBuilder()
-
-
-
Method Detail
-
defaultRoutingBuilder
Routing.Builder defaultRoutingBuilder()
- Returns:
- the default
Routing.Builderfor the component
-
routingBuilder
Routing.Builder routingBuilder()
- Returns:
- the actual
Routing.Builderfor the component; might be the default
-
create
static RoutingBuilders create(MpServiceContext context, String componentName)
Prepares the default and actualRouting.Builderinstances based on the "routing" configuration for the specific component.- Parameters:
context- theMpServiceContextfor the calling servicecomponentName- config key under which "routing" config might exist for the component of interest- Returns:
RoutingBuildersbased on the named config (or default)
-
create
static RoutingBuilders create(MpServiceContext context, Config componentConfig)
Prepares the default and actualRouting.Builderinstances based on the "routing" configuration for the specific component configuration.- Parameters:
context- theMpServiceContextfor the calling servicecomponentConfig- the configuration for the calling service- Returns:
RoutingBuildersbased on the config (or default)
-
-