Ignore:
Timestamp:
2014-04-10T14:39:33+12:00 (10 years ago)
Author:
kjdon
Message:

Lots of changes. Mainly to do with removing this.doc from everywhere. Document is not thread safe. Now we tend to create a new Document everytime we are starting a new page/message etc. in service this.desc_doc is available as teh document to create service info stuff. But it should only be used for this and not for other messages. newDOM is now static for XMLConverter. method param changes for some GSXML methods.

File:
1 edited

Legend:

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

    r28884 r28966  
    184184            Communicator communicator = null;
    185185            // we need to create the XML to configure the communicator
    186             Document site_doc = this.converter.newDOM();
     186            Document site_doc = XMLConverter.newDOM();
    187187            Element site_elem = site_doc.createElement(GSXML.SITE_ELEM);
    188188            site_elem.setAttribute(GSXML.TYPE_ATT, remote_site_type);
     
    359359       
    360360        String verb = getVerb(query);
    361         Document response_doc = this.converter.newDOM();
     361        Document response_doc = XMLConverter.newDOM();
    362362        Element xml_response = OAIXML.createBasicResponse(response_doc, verb, pairs);
    363363        Element verb_elem = null;
     
    389389        // The query is valid, we can now
    390390        // compose the request message to the receptionist
    391         Document request_doc = this.converter.newDOM();
     391        Document request_doc = XMLConverter.newDOM();
    392392        Element xml_message = request_doc.createElement(GSXML.MESSAGE_ELEM);
    393393        Element xml_request = request_doc.createElement(GSXML.REQUEST_ELEM);
Note: See TracChangeset for help on using the changeset viewer.