public interface Registration
A routing builder registration.
This type is used internally in Helidon to allow gathering of registrations, and then re-applying them on a different builder.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Registration
Create a registration for a filter.static Registration
Create a registration for a route.static Registration
create
(HttpSecurity security) Create a registration for HTTP security instance.static Registration
create
(HttpService... services) Create a registration for service(s).static <T> Registration
create
(Class<T> exceptionClass, ErrorHandler<? super T> handler) Create a registration for an error handler.static Registration
create
(String path, HttpService... services) Create a registration for service(s) with a path.static Registration
createMaxRerouteCount
(int maxReRouteCount) Create a registration for configuration of max re-route count.void
register
(HttpRouting.Builder routing) Register this registration on a different routing builder.
-
Method Details
-
create
Create a registration for service(s) with a path.- Parameters:
path
- path of the service(s)services
- service(s) to register- Returns:
- a new registration
-
create
Create a registration for service(s).- Parameters:
services
- service(s) to register- Returns:
- a new registration
-
create
Create a registration for a route.- Parameters:
route
- to register- Returns:
- a new registration
-
create
Create a registration for a filter.- Parameters:
filter
- to register- Returns:
- a new registration
-
create
Create a registration for an error handler.- Type Parameters:
T
- type of the exception to be handled- Parameters:
exceptionClass
- class of exception to map this handler tohandler
- handler to handle that exception- Returns:
- a new registration
-
createMaxRerouteCount
Create a registration for configuration of max re-route count.- Parameters:
maxReRouteCount
- maximal number of re-routes to allow- Returns:
- a new registration
-
create
Create a registration for HTTP security instance.- Parameters:
security
- to register- Returns:
- a new registration
-
register
Register this registration on a different routing builder.- Parameters:
routing
- the routing builder to apply this registration on
-