Class PEDomainConfigValidator
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.Validator
-
- com.sun.enterprise.admin.servermgmt.DomainConfigValidator
-
- com.sun.enterprise.admin.servermgmt.pe.PEDomainConfigValidator
-
public class PEDomainConfigValidator extends DomainConfigValidator
This class defines the domain config entries that are required to create a PE Tomcat domain.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.DomainConfigValidator
DomainConfigValidator.DomainConfigEntryInfo
-
-
Constructor Summary
Constructors Constructor Description PEDomainConfigValidator()
Creates a new instance of PEDomainConfigValidator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isValidate(String name, Object domainConfig)
This method allows subclasses to say if an entry should be validated at all.void
validate(Object domainConfig)
Validates the domainConfig.-
Methods inherited from class com.sun.enterprise.admin.servermgmt.DomainConfigValidator
getDataType, isKeyAllowed, isValueValid
-
-
-
-
Method Detail
-
validate
public void validate(Object domainConfig) throws InvalidConfigException
Description copied from class:DomainConfigValidator
Validates the domainConfig. For each required domain config entry in the entries, gets the value from the domainConfig object and invokes the validator of that entry. Skips the validation of an entry if no validator is specified for that entry.- Overrides:
validate
in classDomainConfigValidator
- Parameters:
domainConfig
- The domainConfig object that needs to be validated. A domainConfig object is valid if it-
is of type DomainConfig
contains the required set of DomainConfig keys
the value for each required key is valid.
- Throws:
InvalidConfigException
- If invalid domainConfig is supplied.
-
isValidate
protected boolean isValidate(String name, Object domainConfig)
Description copied from class:DomainConfigValidator
This method allows subclasses to say if an entry should be validated at all. This is an attempt to add some flexibility to the otherwise static validation. (Eg:- If we donot want to validate the ports during domain creation)- Specified by:
isValidate
in classDomainConfigValidator
-
-