@Deprecated public class RouterFactoryOptions extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_MOUNT_NOT_IMPLEMENTED_HANDLER
Deprecated.
By default, RouterFactory mounts Not Implemented/Method Not Allowed handler
|
static boolean |
DEFAULT_MOUNT_RESPONSE_CONTENT_TYPE_HANDLER
Deprecated.
By default, RouterFactory will mount ResponseContentTypeHandler when required
|
static boolean |
DEFAULT_MOUNT_VALIDATION_FAILURE_HANDLER
Deprecated.
Router Factory won't manage the validation errors anymore. You must use
Router.errorHandler(int, Handler) with 400 error |
static String |
DEFAULT_OPERATION_MODEL_KEY
Deprecated.
By default, RouterFactory will not expose operation configuration in the the routing context
|
static boolean |
DEFAULT_REQUIRE_SECURITY_HANDLERS
Deprecated.
By default, RouterFactory requires security handlers
to be defined while calling getRouter() or it will throw an Exception
|
Constructor and Description |
---|
RouterFactoryOptions()
Deprecated.
|
RouterFactoryOptions(JsonObject json)
Deprecated.
|
RouterFactoryOptions(RouterFactoryOptions other)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getOperationModelKey()
Deprecated.
|
boolean |
isMountNotImplementedHandler()
Deprecated.
|
boolean |
isMountResponseContentTypeHandler()
Deprecated.
|
boolean |
isMountValidationFailureHandler()
Deprecated.
Router Factory won't manage the validation errors anymore. You must use
Router.errorHandler(int, Handler) with 400 error |
boolean |
isRequireSecurityHandlers()
Deprecated.
|
RouterFactoryOptions |
setMountNotImplementedHandler(boolean mountOperationsWithoutHandler)
Deprecated.
If true, Router Factory will automatically mount an handler that return HTTP 405/501 status code for each operation where you didn't specify an handler.
|
RouterFactoryOptions |
setMountResponseContentTypeHandler(boolean mountResponseContentTypeHandler)
Deprecated.
If true, when required, the factory will mount a
ResponseContentTypeHandler |
RouterFactoryOptions |
setMountValidationFailureHandler(boolean mountGlobalValidationFailureHandler)
Deprecated.
Router Factory won't manage the validation errors anymore. You must use
Router.errorHandler(int, Handler) with 400 error |
RouterFactoryOptions |
setOperationModelKey(String operationModelKey)
Deprecated.
When set, an additional handler will be created to expose the operation model in the routing
context under the given key.
|
RouterFactoryOptions |
setRequireSecurityHandlers(boolean requireSecurityHandlers)
Deprecated.
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 |
JsonObject |
toJson()
Deprecated.
|
@Deprecated public static final boolean DEFAULT_MOUNT_VALIDATION_FAILURE_HANDLER
Router.errorHandler(int, Handler)
with 400 errorpublic static final boolean DEFAULT_MOUNT_NOT_IMPLEMENTED_HANDLER
public static final boolean DEFAULT_REQUIRE_SECURITY_HANDLERS
public static final boolean DEFAULT_MOUNT_RESPONSE_CONTENT_TYPE_HANDLER
public static final String DEFAULT_OPERATION_MODEL_KEY
public RouterFactoryOptions()
public RouterFactoryOptions(JsonObject json)
public RouterFactoryOptions(RouterFactoryOptions other)
public JsonObject toJson()
@Deprecated public boolean isMountValidationFailureHandler()
Router.errorHandler(int, Handler)
with 400 error@Deprecated public RouterFactoryOptions setMountValidationFailureHandler(boolean mountGlobalValidationFailureHandler)
Router.errorHandler(int, Handler)
with 400 errorRouterFactory.setValidationFailureHandler(Handler)
. If failure is different from ValidationException, next failure
handler will be called.mountGlobalValidationFailureHandler
- public boolean isMountNotImplementedHandler()
public RouterFactoryOptions setMountNotImplementedHandler(boolean mountOperationsWithoutHandler)
Router.errorHandler(int, Handler)
mountOperationsWithoutHandler
- public boolean isRequireSecurityHandlers()
public RouterFactoryOptions setRequireSecurityHandlers(boolean requireSecurityHandlers)
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
requireSecurityHandlers
- public boolean isMountResponseContentTypeHandler()
public RouterFactoryOptions setMountResponseContentTypeHandler(boolean mountResponseContentTypeHandler)
ResponseContentTypeHandler
mountResponseContentTypeHandler
- public String getOperationModelKey()
public RouterFactoryOptions setOperationModelKey(String operationModelKey)
operationModelKey
- Copyright © 2021 Eclipse. All rights reserved.