Class EmbeddedServletService.ConfigurationValidator
- java.lang.Object
-
- de.aristaflow.adept2.base.configuration.ConfigurationValidator
-
- de.aristaflow.adept2.base.servletcontainer.dynamic.EmbeddedServletService.ConfigurationValidator
-
- Enclosing class:
- EmbeddedServletService
public static class EmbeddedServletService.ConfigurationValidator extends ConfigurationValidator
Validates the configuration of the embedded servlet service, that is, an instance ofServletContextneeds to be provided and the URL of the outer servlet.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidvalidate(org.apache.commons.configuration2.Configuration conf)Validates the configuration in the givenConfigurationobject.-
Methods inherited from class de.aristaflow.adept2.base.configuration.ConfigurationValidator
rebuke, rebukeIllegalValue, rebukeMissingValue
-
-
-
-
Method Detail
-
validate
protected void validate(org.apache.commons.configuration2.Configuration conf) throws ConfigurationExceptionDescription copied from class:ConfigurationValidatorValidates the configuration in the givenConfigurationobject. The configuration was already validated against thepropertydescriptions of theConfigurationDescription, i.e. if the type wasProperty.Type.BOOLEANyou can expect the value to be a valid string representation of a boolean (valid in the sense ofProperty.Type.BOOLEAN).To report errors (i.e. throw
ConfigurationExceptions) the methodConfigurationValidator.rebukeIllegalValue(Configuration, String, String)should be used.- Specified by:
validatein classConfigurationValidator- Parameters:
conf- the configuration to be validated- Throws:
ConfigurationException- if the configuration contains errors
-
-