public interface DesignDrivenRouterFactory<Specification>
original non RX-ified interface using Vert.x codegen.| 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.
|
DesignDrivenRouterFactory |
getDelegate() |
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.
|
static <Specification> |
newInstance(DesignDrivenRouterFactory arg) |
static <Specification> |
newInstance(DesignDrivenRouterFactory arg,
TypeArg<Specification> __typeArg_Specification) |
DesignDrivenRouterFactory |
setValidationFailureHandler(Handler<RoutingContext> handler)
Set default validation failure handler.
|
DesignDrivenRouterFactory getDelegate()
DesignDrivenRouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
securitySchemaName - handler - DesignDrivenRouterFactory addHandler(HttpMethod method, String path, Handler<RoutingContext> handler)
io.vertx.reactivex.ext.web.api.contract.RouterFactoryExceptionmethod - path - handler - DesignDrivenRouterFactory addFailureHandler(HttpMethod method, String path, Handler<RoutingContext> failureHandler)
io.vertx.reactivex.ext.web.api.contract.RouterFactoryExceptionmethod - path - failureHandler - DesignDrivenRouterFactory setValidationFailureHandler(Handler<RoutingContext> handler)
enableValidationFailureHandler(boolean)handler - DesignDrivenRouterFactory enableValidationFailureHandler(boolean enable)
setValidationFailureHandler(io.vertx.core.Handler<io.vertx.reactivex.ext.web.RoutingContext>))
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()
static <Specification> DesignDrivenRouterFactory<Specification> newInstance(DesignDrivenRouterFactory arg)
static <Specification> DesignDrivenRouterFactory<Specification> newInstance(DesignDrivenRouterFactory arg, TypeArg<Specification> __typeArg_Specification)
Copyright © 2017. All rights reserved.