@ Override public void basicValidate ( final String section ) throws ConfigException { if ( StringUtils . isEmpty ( host ) || port == null || port <= 0 || port > MAX_PORT ) { throw new ConfigException ( section , "Invalid host and port" ) ; } }
Returns the validation state of the config