Class EmbeddedServletService.ConfigurationValidator
java.lang.Object
de.aristaflow.adept2.base.configuration.ConfigurationValidator
de.aristaflow.adept2.base.servletcontainer.dynamic.EmbeddedServletService.ConfigurationValidator
- Enclosing class:
- EmbeddedServletService
Validates the configuration of the embedded servlet service, that is, an
instance of
ServletContext needs to be provided and the URL of
the outer servlet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidate(Configuration conf) Validates the configuration in the givenConfigurationobject.Methods inherited from class de.aristaflow.adept2.base.configuration.ConfigurationValidator
rebuke, rebukeIllegalValue, rebukeMissingValue
-
Constructor Details
-
ConfigurationValidator
public ConfigurationValidator()
-
-
Method Details
-
validate
Description 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
-