public class OpenAPI3RouterFactory extends Object implements RouterFactory
addHandlerByOperationId(java.lang.String, io.vertx.core.Handler<io.vertx.reactivex.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, wait
newInstance
public 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 RouterFactory
securitySchemaName
- handler
- @Deprecated public RouterFactory setOptions(RouterFactoryOptions options)
setOptions
in interface RouterFactory
options
- @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 RouterFactory
validationFailureHandler
- @Deprecated public RouterFactory setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
setNotImplementedFailureHandler
in interface RouterFactory
notImplementedFailureHandler
- @Deprecated public RouterFactory setBodyHandler(BodyHandler bodyHandler)
setBodyHandler
in interface RouterFactory
bodyHandler
- @Deprecated public RouterFactory addGlobalHandler(Handler<RoutingContext> globalHandler)
Router
being generated. addGlobalHandler
in interface RouterFactory
globalHandler
- @Deprecated public RouterFactory setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
OperationRequest
setExtraOperationContextPayloadMapper
in interface RouterFactory
extraOperationContextPayloadMapper
- @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 void create(Vertx vertx, String url, Handler<AsyncResult<OpenAPI3RouterFactory>> handler)
vertx
- url
- location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)handler
- When specification is loaded, this handler will be called with AsyncResult@Deprecated public static void 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 void create(Vertx vertx, String url, List<JsonObject> auth, Handler<AsyncResult<OpenAPI3RouterFactory>> handler)
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
handler
- When specification is loaded, this handler will be called with AsyncResult@Deprecated public static void 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 AuthorizationValue
public static OpenAPI3RouterFactory newInstance(OpenAPI3RouterFactory arg)
Copyright © 2024 Eclipse. All rights reserved.