Module io.helidon.webserver
Package io.helidon.webserver.spi
Interface ServerFeature.RoutingBuilders
- Enclosing interface:
ServerFeature
public static interface ServerFeature.RoutingBuilders
Access to builders of various routing types.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasRouting
(Class<?> builderType) Check whether a specific routing builder is available.<T extends Builder<T,
?>>
TroutingBuilder
(Class<T> builderType) Obtain the routing builder for the provided type.
-
Method Details
-
hasRouting
Check whether a specific routing builder is available.- Parameters:
builderType
- type of the routing builder- Returns:
true
if such a routing exists
-
routingBuilder
Obtain the routing builder for the provided type.- Type Parameters:
T
- type that is expected- Parameters:
builderType
- type of the routing builder- Returns:
- instance of the routing builder
- Throws:
NoSuchElementException
- in case the routing is not avialable- See Also:
-