Class AbstractClientBootstrapper

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener
    Direct Known Subclasses:
    OA2ClientBootstrapper

    public abstract class AbstractClientBootstrapper
    extends edu.uiuc.ncsa.security.servlet.Bootstrapper
    A class required by Tomcat. This is the entry point for loading the configuration file. One feature of this is that it will search for configurations in various default locations using a default file name of client.xml
    • $USER_HOME/client.xml
    • $USER_HOME/oa4mp/client.xml
    • $USER_DIR/client.xml
    • $USER_DIR/client.xml
    • /var/www/config/client.xml
    • /var/www/config/oa4mp/client.xml
    where $USER_HOME is the home directory for the current user and $USER_DIR is he current invocation directory. If all of these locations as well as the servlet context have been checked for usable configurations and none is found, an error is issued stating there is no usable configuration.
    • Constructor Detail

      • AbstractClientBootstrapper

        public AbstractClientBootstrapper()
    • Method Detail

      • getOa4mpConfigFileKey

        public String getOa4mpConfigFileKey()
      • getOa4mpConfigNameKey

        public String getOa4mpConfigNameKey()
      • loadFromDefaultLocations

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader loadFromDefaultLocations​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger,
                                                                                             String configName)
                                                                                      throws Exception
        Throws:
        Exception
      • getConfigurationLoader

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader getConfigurationLoader​(javax.servlet.ServletContext servletContext)
                                                                                    throws Exception
        Specified by:
        getConfigurationLoader in class edu.uiuc.ncsa.security.servlet.Bootstrapper
        Throws:
        Exception