Interface RouterFactory<Specification>
-
- All Known Implementing Classes:
OpenAPI3RouterFactory
public interface RouterFactory<Specification>Main interface for Design Driven Router factory Author: Francesco Guardiani @slinkydeveloper NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description RouterFactoryaddGlobalHandler(io.vertx.core.Handler<RoutingContext> globalHandler)Deprecated.RouterFactoryaddSecurityHandler(String securitySchemaName, io.vertx.core.Handler<RoutingContext> handler)Deprecated.io.vertx.ext.web.api.contract.RouterFactorygetDelegate()io.vertx.ext.web.api.contract.RouterFactoryOptionsgetOptions()Deprecated.RoutergetRouter()Deprecated.io.vertx.core.Handler<RoutingContext>getValidationFailureHandler()Deprecated.static <Specification>
RouterFactory<Specification>newInstance(io.vertx.ext.web.api.contract.RouterFactory arg)static <Specification>
RouterFactory<Specification>newInstance(io.vertx.ext.web.api.contract.RouterFactory arg, TypeArg<Specification> __typeArg_Specification)RouterFactorysetBodyHandler(BodyHandler bodyHandler)Deprecated.RouterFactorysetExtraOperationContextPayloadMapper(Function<RoutingContext,io.vertx.core.json.JsonObject> extraOperationContextPayloadMapper)Deprecated.RouterFactorysetNotImplementedFailureHandler(io.vertx.core.Handler<RoutingContext> notImplementedFailureHandler)Deprecated.RouterFactorysetOptions(io.vertx.ext.web.api.contract.RouterFactoryOptions options)Deprecated.RouterFactorysetValidationFailureHandler(io.vertx.core.Handler<RoutingContext> validationFailureHandler)Deprecated.
-
-
-
Method Detail
-
getDelegate
io.vertx.ext.web.api.contract.RouterFactory getDelegate()
-
addSecurityHandler
@Deprecated RouterFactory addSecurityHandler(String securitySchemaName, io.vertx.core.Handler<RoutingContext> handler)
Deprecated.Mount to paths that have to follow a security schema a security handler- Parameters:
securitySchemaName-handler-- Returns:
-
setOptions
@Deprecated RouterFactory setOptions(io.vertx.ext.web.api.contract.RouterFactoryOptions options)
Deprecated.Set options of router factory. For more infoRouterFactoryOptions- Parameters:
options-- Returns:
-
getOptions
@Deprecated io.vertx.ext.web.api.contract.RouterFactoryOptions getOptions()
Deprecated.Get options of router factory. For more infoRouterFactoryOptions- Returns:
-
getRouter
@Deprecated Router getRouter()
Deprecated.Construct a new router based on spec. It will fail if you are trying to mount a spec with security schemes without assigned handlers
Note: Router is constructed in this function, so it will be respected the path definition ordering.- Returns:
-
getValidationFailureHandler
@Deprecated io.vertx.core.Handler<RoutingContext> getValidationFailureHandler()
Deprecated.- Returns:
-
setValidationFailureHandler
@Deprecated RouterFactory setValidationFailureHandler(io.vertx.core.Handler<RoutingContext> validationFailureHandler)
Deprecated.Set default validation failure handler. You can enable/disable this feature fromRouterFactoryOptions- Parameters:
validationFailureHandler-- Returns:
- this object
-
setNotImplementedFailureHandler
@Deprecated RouterFactory setNotImplementedFailureHandler(io.vertx.core.Handler<RoutingContext> notImplementedFailureHandler)
Deprecated.Set not implemented failure handler. It's called when you don't define an handler for a specific operation. You can enable/disable this feature fromRouterFactoryOptions- Parameters:
notImplementedFailureHandler-- Returns:
- this object
-
setBodyHandler
@Deprecated RouterFactory setBodyHandler(BodyHandler bodyHandler)
Deprecated.Supply your own BodyHandler if you would like to control body limit, uploads directory and deletion of uploaded files- Parameters:
bodyHandler-- Returns:
- self
-
addGlobalHandler
@Deprecated RouterFactory addGlobalHandler(io.vertx.core.Handler<RoutingContext> globalHandler)
Deprecated.Add global handler to be applied prior toRouterbeing generated.
Please note that you should not add a body handler inside that list. If you want to modify the body handler, please usesetBodyHandler(io.vertx.reactivex.ext.web.handler.BodyHandler)- Parameters:
globalHandler-- Returns:
- this object
-
setExtraOperationContextPayloadMapper
@Deprecated RouterFactory setExtraOperationContextPayloadMapper(Function<RoutingContext,io.vertx.core.json.JsonObject> extraOperationContextPayloadMapper)
Deprecated.When set, this function is called while creating the payload ofOperationRequest- Parameters:
extraOperationContextPayloadMapper-- Returns:
-
newInstance
static <Specification> RouterFactory<Specification> newInstance(io.vertx.ext.web.api.contract.RouterFactory arg)
-
newInstance
static <Specification> RouterFactory<Specification> newInstance(io.vertx.ext.web.api.contract.RouterFactory arg, TypeArg<Specification> __typeArg_Specification)
-
-