public class OpenAPI3RouterFactory extends Object implements RouterFactory<io.swagger.v3.oas.models.OpenAPI>
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, 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<io.swagger.v3.oas.models.OpenAPI>
@Deprecated public RouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
addSecurityHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
securitySchemaName
- handler
- @Deprecated public RouterFactory setOptions(RouterFactoryOptions options)
setOptions
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
options
- @Deprecated public RouterFactoryOptions getOptions()
getOptions
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
@Deprecated public Router getRouter()
getRouter
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
@Deprecated public Handler<RoutingContext> getValidationFailureHandler()
getValidationFailureHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
@Deprecated public RouterFactory setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
setValidationFailureHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
validationFailureHandler
- @Deprecated public RouterFactory setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
setNotImplementedFailureHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
notImplementedFailureHandler
- @Deprecated public RouterFactory setBodyHandler(BodyHandler bodyHandler)
setBodyHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
bodyHandler
- @Deprecated public RouterFactory addGlobalHandler(Handler<RoutingContext> globalHandler)
Router
being generated. addGlobalHandler
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
globalHandler
- @Deprecated public RouterFactory setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
OperationRequest
setExtraOperationContextPayloadMapper
in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>
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 anhandler
- 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@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 anpublic static OpenAPI3RouterFactory newInstance(OpenAPI3RouterFactory arg)
Copyright © 2021 Eclipse. All rights reserved.