public interface RouterFactory<Specification>
| 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 
 | 
RouterFactoryOptions | 
getOptions()
Get options of router factory. 
 | 
Router | 
getRouter()
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)
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. 
 
You must use  
Router.errorHandler(int, Handler) with 501 error | 
RouterFactory | 
setOptions(RouterFactoryOptions options)
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)
RouterFactoryOptionsoptions - RouterFactoryOptions getOptions()
RouterFactoryOptionsRouter 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)
OperationRequestextraOperationContextPayloadMapper - Copyright © 2023 Eclipse. All rights reserved.