public interface DesignDrivenRouterFactory<Specification>
| Modifier and Type | Method and Description |
|---|---|
DesignDrivenRouterFactory |
addFailureHandler(HttpMethod method,
String path,
Handler<RoutingContext> failureHandler)
Add a failure handler to a path with a method.
|
DesignDrivenRouterFactory |
addHandler(HttpMethod method,
String path,
Handler<RoutingContext> handler)
Add an handler to a path with a method.
|
DesignDrivenRouterFactory |
addSecurityHandler(String securitySchemaName,
Handler<RoutingContext> handler)
Mount to paths that have to follow a security schema a security handler
|
DesignDrivenRouterFactory |
enableValidationFailureHandler(boolean enable)
Enable or disable validation failure handler.
|
Router |
getRouter()
Construct a new router based on spec.
|
DesignDrivenRouterFactory |
mountOperationsWithoutHandlers(boolean enable)
Automatic mount handlers that return HTTP 501 status code for operations where you didn't specify an handler.
|
DesignDrivenRouterFactory |
setValidationFailureHandler(Handler<RoutingContext> handler)
Set default validation failure handler.
|
DesignDrivenRouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
securitySchemaName - handler - DesignDrivenRouterFactory addHandler(HttpMethod method, String path, Handler<RoutingContext> handler)
RouterFactoryExceptionmethod - path - handler - DesignDrivenRouterFactory addFailureHandler(HttpMethod method, String path, Handler<RoutingContext> failureHandler)
RouterFactoryExceptionmethod - path - failureHandler - DesignDrivenRouterFactory setValidationFailureHandler(Handler<RoutingContext> handler)
enableValidationFailureHandler(boolean)handler - DesignDrivenRouterFactory enableValidationFailureHandler(boolean enable)
setValidationFailureHandler(Handler))
ValidationException handler as a failure handler. If failure is different from ValidationException, it will be
called the next failure handler.enable - DesignDrivenRouterFactory mountOperationsWithoutHandlers(boolean enable)
enable - Router getRouter()
Copyright © 2017. All rights reserved.