public class OpenAPI3RouterFactory extends Object implements RouterFactory
addHandlerByOperationId(java.lang.String, io.vertx.core.Handler<io.vertx.rxjava3.ext.web.RoutingContext>)
OpenAPI3RouterFactory.create(vertx, "src/resources/spec.yaml", asyncResult -> {
if (!asyncResult.succeeded()) {
// IO failure or spec invalid else {
OpenAPI3RouterFactory routerFactory = asyncResult.result();
routerFactory.addHandlerByOperationId("operation_id", routingContext -> {
// Do something
}, routingContext -> {
// Do something with failure handler
});
Router router = routerFactory.getRouter();
}
});
}
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<OpenAPI3RouterFactory> |
__TYPE_ARG |
| Constructor and Description |
|---|
OpenAPI3RouterFactory(Object delegate) |
OpenAPI3RouterFactory(OpenAPI3RouterFactory delegate) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancepublic static final io.vertx.lang.rx.TypeArg<OpenAPI3RouterFactory> __TYPE_ARG
public OpenAPI3RouterFactory(OpenAPI3RouterFactory delegate)
public OpenAPI3RouterFactory(Object delegate)
public OpenAPI3RouterFactory getDelegate()
getDelegate in interface RouterFactory@Deprecated public RouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
addSecurityHandler in interface RouterFactorysecuritySchemaName - handler - @Deprecated public RouterFactory setOptions(RouterFactoryOptions options)
setOptions in interface RouterFactoryoptions - @Deprecated public RouterFactoryOptions getOptions()
getOptions in interface RouterFactory@Deprecated public Router getRouter()
getRouter in interface RouterFactory@Deprecated public Handler<RoutingContext> getValidationFailureHandler()
getValidationFailureHandler in interface RouterFactory@Deprecated public RouterFactory setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
setValidationFailureHandler in interface RouterFactoryvalidationFailureHandler - @Deprecated public RouterFactory setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
setNotImplementedFailureHandler in interface RouterFactorynotImplementedFailureHandler - @Deprecated public RouterFactory setBodyHandler(BodyHandler bodyHandler)
setBodyHandler in interface RouterFactorybodyHandler - @Deprecated public RouterFactory addGlobalHandler(Handler<RoutingContext> globalHandler)
Router being generated. addGlobalHandler in interface RouterFactoryglobalHandler - @Deprecated public RouterFactory setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
OperationRequestsetExtraOperationContextPayloadMapper in interface RouterFactoryextraOperationContextPayloadMapper - @Deprecated public OpenAPI3RouterFactory addSecuritySchemaScopeValidator(String securitySchemaName, String scopeName, Handler<RoutingContext> handler)
securitySchemaName - scopeName - handler - @Deprecated public OpenAPI3RouterFactory addHandlerByOperationId(String operationId, Handler<RoutingContext> handler)
operationId - handler - @Deprecated public OpenAPI3RouterFactory addFailureHandlerByOperationId(String operationId, Handler<RoutingContext> failureHandler)
operationId - failureHandler - @Deprecated public OpenAPI3RouterFactory mountOperationToEventBus(String operationId, String address)
operationId - address - @Deprecated public OpenAPI3RouterFactory mountServiceFromTag(String tag, String address)
tag - address - @Deprecated public OpenAPI3RouterFactory mountServicesFromExtensions()
@Deprecated public static Single<OpenAPI3RouterFactory> create(Vertx vertx, String url)
vertx - url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)@Deprecated public static Single<OpenAPI3RouterFactory> rxCreate(Vertx vertx, String url)
vertx - url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)@Deprecated public static Single<OpenAPI3RouterFactory> create(Vertx vertx, String url, List<JsonObject> auth)
vertx - url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)auth - list of authorization values needed to access the remote url. Each item should be json representation of an AuthorizationValue@Deprecated public static Single<OpenAPI3RouterFactory> rxCreate(Vertx vertx, String url, List<JsonObject> auth)
vertx - url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)auth - list of authorization values needed to access the remote url. Each item should be json representation of an AuthorizationValuepublic static OpenAPI3RouterFactory newInstance(OpenAPI3RouterFactory arg)
Copyright © 2023 Eclipse. All rights reserved.