@Deprecated public interface RouterFactory
Modifier and Type | Method and Description |
---|---|
RouterFactory |
addGlobalHandler(Handler<RoutingContext> globalHandler)
Deprecated.
Add global handler to be applied prior to
Router being generated. |
RouterFactory |
addSecurityHandler(String securitySchemaName,
Handler<RoutingContext> handler)
Deprecated.
Mount to paths that have to follow a security schema a security handler
|
RouterFactoryOptions |
getOptions()
Deprecated.
Get options of router factory.
|
Router |
getRouter()
Deprecated.
Construct a new router based on spec.
|
Handler<RoutingContext> |
getValidationFailureHandler()
Deprecated.
Router Factory won't manage the validation errors anymore. You must use
Router.errorHandler(int, Handler) with 400 error |
RouterFactory |
setBodyHandler(BodyHandler bodyHandler)
Deprecated.
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)
Deprecated.
When set, this function is called while creating the payload of
OperationRequest |
RouterFactory |
setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
Deprecated.
You must use
Router.errorHandler(int, Handler) with 501 error |
RouterFactory |
setOptions(RouterFactoryOptions options)
Deprecated.
Set options of router factory.
|
RouterFactory |
setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
Deprecated.
Router Factory won't manage the validation errors anymore. You must use
Router.errorHandler(int, Handler) with 400 error |
RouterFactory addSecurityHandler(String securitySchemaName, Handler<RoutingContext> handler)
securitySchemaName
- handler
- RouterFactory setOptions(RouterFactoryOptions options)
RouterFactoryOptions
options
- RouterFactoryOptions getOptions()
RouterFactoryOptions
Router getRouter()
@Deprecated Handler<RoutingContext> getValidationFailureHandler()
Router.errorHandler(int, Handler)
with 400 error@Deprecated RouterFactory setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
Router.errorHandler(int, Handler)
with 400 errorRouterFactoryOptions.setMountValidationFailureHandler(boolean)
validationFailureHandler
- @Deprecated RouterFactory setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
Router.errorHandler(int, Handler)
with 501 errorRouterFactoryOptions.setMountNotImplementedHandler(boolean)
notImplementedFailureHandler
- RouterFactory setBodyHandler(BodyHandler bodyHandler)
bodyHandler
- RouterFactory addGlobalHandler(Handler<RoutingContext> globalHandler)
Router
being generated. setBodyHandler(BodyHandler)
globalHandler
- RouterFactory setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
OperationRequest
extraOperationContextPayloadMapper
- Copyright © 2024 Eclipse. All rights reserved.