Package io.helidon.webserver.validation
Class WebServerValidationFeatureProvider
java.lang.Object
io.helidon.webserver.validation.WebServerValidationFeatureProvider
- All Implemented Interfaces:
ConfiguredProvider<io.helidon.webserver.validation.WebServerValidationFeature>,ConfiguredProvider<io.helidon.webserver.validation.WebServerValidationFeature>,ServerFeatureProvider<io.helidon.webserver.validation.WebServerValidationFeature>
public class WebServerValidationFeatureProvider
extends Object
implements ServerFeatureProvider<io.helidon.webserver.validation.WebServerValidationFeature>
A Java
ServiceLoader provider implementation of a ServerFeature that
adds error handler for ValidationException to all server sockets.-
Constructor Details
-
WebServerValidationFeatureProvider
public WebServerValidationFeatureProvider()Constructor required byServiceLoader.
-
-
Method Details
-
configKey
Description copied from interface:ConfiguredProviderKey this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.- Specified by:
configKeyin interfaceConfiguredProvider<io.helidon.webserver.validation.WebServerValidationFeature>- Specified by:
configKeyin interfaceConfiguredProvider<io.helidon.webserver.validation.WebServerValidationFeature>- Returns:
- key of this implementation
-
create
public io.helidon.webserver.validation.WebServerValidationFeature create(Config config, String name) Description copied from interface:ConfiguredProviderCreate a new instance from the configuration located on the provided node.API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version
- Specified by:
createin interfaceConfiguredProvider<io.helidon.webserver.validation.WebServerValidationFeature>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-