Changeset 33968


Ignore:
Timestamp:
2020-02-25T13:37:20+13:00 (4 years ago)
Author:
kjdon
Message:

pass in oai_config from server, rather than reading it in itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/OAIMessageRouter.java

    r31915 r33968  
    6565    }
    6666
     67    /** this must be called before calling configure() */
     68    public void setOAIConfig(Element config) {
     69    this.oai_config = config;
     70    }
     71   
    6772    /**
    6873     * read thru own site config file - create services and connect to sites
     
    9297        this.config_info = config_doc.getDocumentElement();
    9398
    94         // this is the receptionists OAIConfig.xml. Need to rethink how the MR gets this this if we ever talk to remote site, and whether it should be using it anyway
    95         this.oai_config = OAIXML.getOAIConfigXML();
    96         if (this.oai_config == null)
    97         {
    98           logger.error("Couldn't load in OAIConfig.xml");
    99           return false;
    100         }
    10199        Document doc = XMLConverter.newDOM();
    102100        // load up the collections
Note: See TracChangeset for help on using the changeset viewer.