public class OpenAPI3RouterFactoryImpl extends BaseRouterFactory<io.swagger.v3.oas.models.OpenAPI> implements OpenAPI3RouterFactory
DEFAULT_EXTRA_OPERATION_CONTEXT_PAYLOAD_MAPPER, DEFAULT_NOT_IMPLEMENTED_HANDLER, DEFAULT_VALIDATION_FAILURE_HANDLER, options, spec, vertx| Constructor and Description |
|---|
OpenAPI3RouterFactoryImpl(Vertx vertx,
io.swagger.v3.oas.models.OpenAPI spec,
io.swagger.v3.parser.ResolverCache refsCache) |
| Modifier and Type | Method and Description |
|---|---|
OpenAPI3RouterFactory |
addFailureHandlerByOperationId(String operationId,
Handler<RoutingContext> failureHandler)
Add a failure handler by operation_id field in Operation object
|
OpenAPI3RouterFactory |
addHandlerByOperationId(String operationId,
Handler<RoutingContext> handler)
Add an handler by operation_id field in Operation object
|
OpenAPI3RouterFactory |
addSecurityHandler(String securitySchemaName,
Handler handler)
Mount to paths that have to follow a security schema a security handler
|
OpenAPI3RouterFactory |
addSecuritySchemaScopeValidator(String securitySchemaName,
String scopeName,
Handler handler)
Add a particular scope validator.
|
Router |
getRouter()
Construct a new router based on spec.
|
OpenAPI3RouterFactory |
mountOperationToEventBus(String operationId,
String address)
Specify to route an incoming request for specified operation id to a Web Api Service mounted at the specified address on event bus.
|
OpenAPI3RouterFactory |
mountServiceFromTag(String tag,
String address)
Specify to route an incoming request for all operations that contains the specified tag to a Web Api Service mounted at the specified address on event bus.
|
OpenAPI3RouterFactory |
mountServiceInterface(Class interfaceClass,
String address)
Introspect the Web Api Service interface to route to service all matching method names with operation ids.
|
OpenAPI3RouterFactory |
mountServicesFromExtensions()
Introspect the OpenAPI spec to mount handlers for all operations that specifies a x-vertx-event-bus annotation.
|
addGlobalHandler, getBodyHandler, getExtraOperationContextPayloadMapper, getGlobalHandlers, getNotImplementedFailureHandler, getOptions, getValidationFailureHandler, setBodyHandler, setExtraOperationContextPayloadMapper, setNotImplementedFailureHandler, setOptions, setValidationFailureHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createaddGlobalHandler, getOptions, getValidationFailureHandler, setBodyHandler, setExtraOperationContextPayloadMapper, setNotImplementedFailureHandler, setOptions, setValidationFailureHandlerpublic OpenAPI3RouterFactoryImpl(Vertx vertx, io.swagger.v3.oas.models.OpenAPI spec, io.swagger.v3.parser.ResolverCache refsCache)
public OpenAPI3RouterFactory addSecuritySchemaScopeValidator(String securitySchemaName, String scopeName, Handler handler)
OpenAPI3RouterFactoryaddSecuritySchemaScopeValidator in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory addHandlerByOperationId(String operationId, Handler<RoutingContext> handler)
OpenAPI3RouterFactoryaddHandlerByOperationId in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory addFailureHandlerByOperationId(String operationId, Handler<RoutingContext> failureHandler)
OpenAPI3RouterFactoryaddFailureHandlerByOperationId in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory mountServiceFromTag(String tag, String address)
OpenAPI3RouterFactorymountServiceFromTag in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory mountServiceInterface(Class interfaceClass, String address)
OpenAPI3RouterFactorymountServiceInterface in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory mountOperationToEventBus(String operationId, String address)
OpenAPI3RouterFactorymountOperationToEventBus in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory mountServicesFromExtensions()
OpenAPI3RouterFactorymountServicesFromExtensions in interface OpenAPI3RouterFactorypublic OpenAPI3RouterFactory addSecurityHandler(String securitySchemaName, Handler handler)
RouterFactoryaddSecurityHandler in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>public Router getRouter()
RouterFactorygetRouter in interface RouterFactory<io.swagger.v3.oas.models.OpenAPI>Copyright © 2020. All rights reserved.