Class ValidationConfig
java.lang.Object
org.glassfish.jersey.server.validation.ValidationConfig
Configuration class for Bean Validation provider.
- Author:
- Michal Gajdos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstraintValidatorFactory
(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory) Defines the constraint validator factory.jakarta.validation.ConstraintValidatorFactory
ReturnConstraintValidatorFactory
implementation used for configuration.jakarta.validation.MessageInterpolator
ReturnMessageInterpolator
implementation used for configuration.jakarta.validation.ParameterNameProvider
ReturnParameterNameProvider
implementation used for configuration.jakarta.validation.TraversableResolver
ReturnTraversableResolver
implementation used for configuration.messageInterpolator
(jakarta.validation.MessageInterpolator messageInterpolator) Defines the message interpolator.parameterNameProvider
(jakarta.validation.ParameterNameProvider parameterNameProvider) Defines the parameter name provider.traversableResolver
(jakarta.validation.TraversableResolver traversableResolver) Defines the traversable resolver.
-
Constructor Details
-
ValidationConfig
public ValidationConfig()
-
-
Method Details
-
getMessageInterpolator
public jakarta.validation.MessageInterpolator getMessageInterpolator()ReturnMessageInterpolator
implementation used for configuration.- Returns:
- instance of
MessageInterpolator
ornull
if not defined.
-
getTraversableResolver
public jakarta.validation.TraversableResolver getTraversableResolver()ReturnTraversableResolver
implementation used for configuration.- Returns:
- instance of
TraversableResolver
ornull
if not defined.
-
getConstraintValidatorFactory
public jakarta.validation.ConstraintValidatorFactory getConstraintValidatorFactory()ReturnConstraintValidatorFactory
implementation used for configuration.- Returns:
- instance of
ConstraintValidatorFactory
ornull
if not defined.
-
getParameterNameProvider
public jakarta.validation.ParameterNameProvider getParameterNameProvider()ReturnParameterNameProvider
implementation used for configuration.- Returns:
- instance of
ParameterNameProvider
ornull
if not defined.
-
messageInterpolator
public ValidationConfig messageInterpolator(jakarta.validation.MessageInterpolator messageInterpolator) Defines the message interpolator. Ifnull
is passed, the default message interpolator is used.- Parameters:
messageInterpolator
- message interpolator implementation.
-
traversableResolver
public ValidationConfig traversableResolver(jakarta.validation.TraversableResolver traversableResolver) Defines the traversable resolver. Ifnull
is passed, the default traversable resolver is used.- Parameters:
traversableResolver
- traversable resolver implementation.
-
constraintValidatorFactory
public ValidationConfig constraintValidatorFactory(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory) Defines the constraint validator factory. Ifnull
is passed, the default constraint validator factory is used.- Parameters:
constraintValidatorFactory
- constraint factory implementation.
-
parameterNameProvider
public ValidationConfig parameterNameProvider(jakarta.validation.ParameterNameProvider parameterNameProvider) Defines the parameter name provider. Ifnull
is passed, the default parameter name provider is used.- Parameters:
parameterNameProvider
- parameter name provider implementation.
-