public class RouterFactoryOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static boolean | 
DEFAULT_MOUNT_NOT_IMPLEMENTED_HANDLER
By default, RouterFactory mounts Not Implemented handler 
 | 
static boolean | 
DEFAULT_MOUNT_RESPONSE_CONTENT_TYPE_HANDLER
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
By default, RouterFactory will not expose operation configuration in the the routing context 
 | 
static boolean | 
DEFAULT_REQUIRE_SECURITY_HANDLERS
By default, RouterFactory requires security handlers
 to be defined while calling getRouter() or it will throw an Exception 
 | 
| Constructor and Description | 
|---|
RouterFactoryOptions()  | 
RouterFactoryOptions(JsonObject json)  | 
RouterFactoryOptions(RouterFactoryOptions other)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getOperationModelKey()  | 
boolean | 
isMountNotImplementedHandler()  | 
boolean | 
isMountResponseContentTypeHandler()  | 
boolean | 
isMountValidationFailureHandler()
Deprecated. 
 
Router Factory won't manage the validation errors anymore. You must use  
Router.errorHandler(int, Handler) with 400 error | 
boolean | 
isRequireSecurityHandlers()  | 
RouterFactoryOptions | 
setMountNotImplementedHandler(boolean mountOperationsWithoutHandler)
If true, Router Factory will automatically mount an handler that return HTTP 501 status code for each operation where you didn't specify an handler. 
 | 
RouterFactoryOptions | 
setMountResponseContentTypeHandler(boolean mountResponseContentTypeHandler)
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)
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)
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 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 RouterFactoryExceptionrequireSecurityHandlers - public boolean isMountResponseContentTypeHandler()
public RouterFactoryOptions setMountResponseContentTypeHandler(boolean mountResponseContentTypeHandler)
ResponseContentTypeHandlermountResponseContentTypeHandler - public String getOperationModelKey()
public RouterFactoryOptions setOperationModelKey(String operationModelKey)
operationModelKey - Copyright © 2020 Eclipse. All rights reserved.