Package | Description |
---|---|
io.vertx.ext.web.api.contract |
Modifier and Type | Method and Description |
---|---|
RouterFactoryOptions |
RouterFactoryOptions.addGlobalHandler(Handler<RoutingContext> globalHandler)
Add global handler to be applied prior to
Router being generated. |
RouterFactoryOptions |
RouterFactory.getOptions()
Get options of router factory.
|
RouterFactoryOptions |
RouterFactoryOptions.setBodyHandler(BodyHandler bodyHandler)
Supply your own BodyHandler if you would like to control body limit, uploads directory and deletion of uploaded files
|
RouterFactoryOptions |
RouterFactoryOptions.setExtraOperationContextPayloadMapper(java.util.function.Function<RoutingContext,JsonObject> extraOperationContextPayloadMapper)
When set, this function is called while creating the payload of
OperationRequest |
RouterFactoryOptions |
RouterFactoryOptions.setMountNotImplementedHandler(boolean mountOperationsWithoutHandler)
Automatic mount handlers that return HTTP 501 status code for operations where you didn't specify an handler.
|
RouterFactoryOptions |
RouterFactoryOptions.setMountResponseContentTypeHandler(boolean mountResponseContentTypeHandler)
If true, when required, the factory will mount a
ResponseContentTypeHandler |
RouterFactoryOptions |
RouterFactoryOptions.setMountValidationFailureHandler(boolean mountGlobalValidationFailureHandler)
Enable or disable validation failure handler.
|
RouterFactoryOptions |
RouterFactoryOptions.setNotImplementedFailureHandler(Handler<RoutingContext> notImplementedFailureHandler)
Set not implemented failure handler.
|
RouterFactoryOptions |
RouterFactoryOptions.setOperationModelKey(String operationModelKey)
When set, an additional handler will be created to expose the operation model in the routing
context under the given key.
|
RouterFactoryOptions |
RouterFactoryOptions.setRequireSecurityHandlers(boolean requireSecurityHandlers)
If true, when you call
RouterFactory.getRouter() the factory will mount for every path
the required security handlers and, if a security handler is not defined, it throws an RouterFactoryException |
RouterFactoryOptions |
RouterFactoryOptions.setValidationFailureHandler(Handler<RoutingContext> validationFailureHandler)
Set default validation failure handler.
|
Modifier and Type | Method and Description |
---|---|
RouterFactory |
RouterFactory.setOptions(RouterFactoryOptions options)
Override options
|
Constructor and Description |
---|
RouterFactoryOptions(RouterFactoryOptions other) |
Copyright © 2018 Eclipse. All rights reserved.