public interface RouterFactory<Specification>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Method and Description |
---|---|
RouterFactory |
addGlobalHandler(Handler<RoutingContext> globalHandler)
Add global handler to be applied prior to
Router being generated. |
RouterFactory |
addSecurityHandler(String securitySchemaName,
Handler<RoutingContext> handler)
Mount to paths that have to follow a security schema a security handler
|
RouterFactory |
getDelegate() |
RouterFactoryOptions |
getOptions()
Get options of router factory.
|
Router |
getRouter()
Construct a new router based on spec.
|
Handler<RoutingContext> |
getValidationFailureHandler()
Deprecated.
|
static <Specification> |
newInstance(RouterFactory arg) |
static <Specification> |
newInstance(RouterFactory arg,
io.vertx.lang.rx.TypeArg<Specification> __typeArg_Specification) |
RouterFactory |
setBodyHandler(BodyHandler bodyHandler)
Supply your own BodyHandler if you would like to control body limit, uploads directory and deletion of uploaded files
|
RouterFactory |
setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
When set, this function is called while creating the payload of
OperationRequest |
RouterFactory |
setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
Deprecated.
|
RouterFactory |
setOptions(RouterFactoryOptions options)
Set options of router factory.
|
RouterFactory |
setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
Deprecated.
|
RouterFactory getDelegate()
RouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
securitySchemaName
- handler
- RouterFactory setOptions(RouterFactoryOptions options)
RouterFactoryOptions
options
- RouterFactoryOptions getOptions()
RouterFactoryOptions
Router getRouter()
@Deprecated Handler<RoutingContext> getValidationFailureHandler()
@Deprecated RouterFactory setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
RouterFactoryOptions
validationFailureHandler
- @Deprecated RouterFactory setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
RouterFactoryOptions
notImplementedFailureHandler
- RouterFactory setBodyHandler(BodyHandler bodyHandler)
bodyHandler
- RouterFactory addGlobalHandler(Handler<RoutingContext> globalHandler)
Router
being generated. setBodyHandler(io.vertx.reactivex.ext.web.handler.BodyHandler)
globalHandler
- RouterFactory setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
OperationRequest
extraOperationContextPayloadMapper
- static <Specification> RouterFactory<Specification> newInstance(RouterFactory arg)
static <Specification> RouterFactory<Specification> newInstance(RouterFactory arg, io.vertx.lang.rx.TypeArg<Specification> __typeArg_Specification)
Copyright © 2023 Eclipse. All rights reserved.