Package com.google.gsa.valve.configuration

Examples of com.google.gsa.valve.configuration.ValveConfigurationException


        Vector searchHosts = valveConf.getSearchHosts();
        if (searchHosts != null) {
            returnUrl = searchHosts.elementAt(0) + returnPath;
        } else {
            String errorMsg = "Search host must be defined in the config file";
            throw new ValveConfigurationException (errorMsg);
        }

        return returnUrl;
    }
View Full Code Here


                        errorMap = new HashMap<Integer, String>();
                        logger.debug("Populating the error Map with error numbers and their associated files");
                        //populate map
                        populateErrorMap(locationDir);
                    } else {
                        throw new ValveConfigurationException("Error Directory Location (errorLocation) has not been set up properly. Review your config file");
                    }
                }
            }
        } else {
            throw new ValveConfigurationException("Error Directory Location (errorLocation) has not been defined. Review your config file");
        }
    }
View Full Code Here

        // Protection
        if ((this.authorizationProcessClsName == null) ||
            (this.authorizationProcessClsName.equals(""))) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly");

        }

        try {

            // Instantiate the authorization process class

            authorizationProcessCls =
                    (AuthorizationProcessImpl)Class.forName(authorizationProcessClsName).newInstance();
            authorizationProcessCls.setValveConfiguration(getValveConfig());

        } catch (InstantiationException ie) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - InstantiationException");


        } catch (IllegalAccessException iae) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - IllegalAccessException");

        } catch (ClassNotFoundException cnfe) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - ClassNotFoundException");

        }

    }
View Full Code Here

                        valveConf.getAuthorizationProcessImpl();
                logger.debug("Setting authorizationProcessClsName: " +
                             authorizationProcessClsName);
            } else {
                // Throw Configuration Exception
                throw new ValveConfigurationException("Valve Configuration file has not been set correctly");
            }

        }

        // Protection
        if ((authorizationProcessClsName == null) ||
            (authorizationProcessClsName.equals(""))) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly");

        }

        try {

            // Instantiate the authorization process class

            authorizationProcessImpl =
                    (AuthorizationProcessImpl)Class.forName(authorizationProcessClsName).newInstance();
            authorizationProcessImpl.setValveConfiguration(valveConf);

        } catch (InstantiationException ie) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - InstantiationException");


        } catch (IllegalAccessException iae) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - IllegalAccessException");

        } catch (ClassNotFoundException cnfe) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - ClassNotFoundException");

        }

        return authorizationProcessImpl;
View Full Code Here

                        valveConf.getAuthenticationProcessImpl();
                logger.debug("Setting authenticationProcessClsName: " +
                             authenticationProcessClsName);
            } else {
                // Throw Configuration Exception
                throw new ValveConfigurationException("Valve Configuration file has not been set correctly");
            }

        }

        // Protection
        if ((authenticationProcessClsName == null) ||
            (authenticationProcessClsName.equals(""))) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly");

        }

        try {

            // Instantiate the authorization process class                
            authenticationProcessImpl =
                    (AuthenticationProcessImpl)Class.forName(authenticationProcessClsName).newInstance();
            authenticationProcessImpl.setValveConfiguration(valveConf);

        } catch (InstantiationException ie) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - InstantiationException");


        } catch (IllegalAccessException iae) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - IllegalAccessException");

        } catch (ClassNotFoundException cnfe) {

            // Throw Configuration Exception
            throw new ValveConfigurationException("Configuration parameter [authorizationProcessImpl] has not been set correctly - ClassNotFoundException");

        }

        return authenticationProcessImpl;
View Full Code Here

TOP

Related Classes of com.google.gsa.valve.configuration.ValveConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.