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 ofServletContext
needs 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 void
validate(org.apache.commons.configuration2.Configuration conf)
Validates the configuration in the givenConfiguration
object.-
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 ConfigurationException
Description copied from class:ConfigurationValidator
Validates the configuration in the givenConfiguration
object. The configuration was already validated against theproperty
descriptions of theConfigurationDescription
, i.e. if the type wasProperty.Type.BOOLEAN
you 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
ConfigurationException
s) the methodConfigurationValidator.rebukeIllegalValue(Configuration, String, String)
should be used.- Specified by:
validate
in classConfigurationValidator
- Parameters:
conf
- the configuration to be validated- Throws:
ConfigurationException
- if the configuration contains errors
-
-