Class RouterBuilder
java.lang.Object
io.vertx.mutiny.ext.web.openapi.router.RouterBuilder
- All Implemented Interfaces:
- MutinyDelegate
Interface to build a Vert.x Web  from an OpenAPI 3 contract.
 
 The router is mounting its handlers in the following order:
 
- RootHandler in the order the root handlers were added to the RouterBuilder.
- ValidationHandler This handler is implementing the marker interface
- UserHandler The custom user handlers defined in the
- FailureHandler The failure handlers defined in the
InputTrustHandler. Because of this, all handlers of type PLATFORM,
   SECURITY_POLICY, BODY and AUTHENTICATION must be mounted as root handlers if required.
   OpenAPIRoute in the same order as they are
   added to the route.
   OpenAPIRoute in the same order as they are
   added to the route.
 original non Mutiny-ified interface using Vert.x codegen.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final TypeArg<RouterBuilder>static final Stringstatic final String
- 
Constructor SummaryConstructorsConstructorDescriptionRouterBuilder(io.vertx.ext.web.openapi.router.RouterBuilder delegate) RouterBuilder(Object delegate) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic RouterBuildercreate(Vertx vertx, OpenAPIContract contract) static RouterBuildercreate(Vertx vertx, OpenAPIContract contract, RequestExtractor extractor) booleanio.vertx.ext.web.openapi.router.RouterBuilderinthashCode()static RouterBuildernewInstance(io.vertx.ext.web.openapi.router.RouterBuilder arg) rootHandler(Consumer<RoutingContext> rootHandler) toString()
- 
Field Details- 
__TYPE_ARG
- 
KEY_META_DATA_OPERATION- See Also:
 
- 
KEY_META_DATA_VALIDATED_REQUEST- See Also:
 
 
- 
- 
Constructor Details- 
RouterBuilderpublic RouterBuilder(io.vertx.ext.web.openapi.router.RouterBuilder delegate) 
- 
RouterBuilder
 
- 
- 
Method Details- 
getDelegatepublic io.vertx.ext.web.openapi.router.RouterBuilder getDelegate()- Specified by:
- getDelegatein interface- MutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
 
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
create- Parameters:
- vertx- the related Vert.x instance
- contract- the contract that describes the endpoint
- Returns:
- an instance of RouterBuilder
 
- 
createpublic static RouterBuilder create(Vertx vertx, OpenAPIContract contract, RequestExtractor extractor) - Parameters:
- vertx- the related Vert.x instance
- contract- the contract that describes the endpoint
- extractor- the extractor is used to extract and transform the parameters and body of the related request in a format that can be validated by the- RequestValidator.
- Returns:
- an instance of RouterBuilder
 
- 
getRoute- Parameters:
- operationId- the id of the operation
- Returns:
- the requested route, or null if the passed operationId doesn't exist.
 
- 
getRoutes- Returns:
- all routes defined in the contract
 
- 
rootHandler- Parameters:
- rootHandler- the root handler to add
- Returns:
 
- 
createRouter- Returns:
- a Router based on the related OpenAPI contract.
 
- 
newInstance
 
-