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/service/GS2LuceneRetrieve.java

    r25649 r28966  
    107107     * <nodeContent>text content or other elements</nodeContent>
    108108     */
    109     protected Element getNodeContent(String doc_id, String lang) throws GSException
     109  protected Element getNodeContent(Document doc, String doc_id, String lang) throws GSException
    110110    {
    111111        String[] args = new String[1];
     
    169169        }
    170170
    171         Element content_node = this.doc.createElement(GSXML.NODE_CONTENT_ELEM);
    172         Text t = this.doc.createTextNode(doc_content);
     171        Element content_node = doc.createElement(GSXML.NODE_CONTENT_ELEM);
     172        Text t = doc.createTextNode(doc_content);
    173173        content_node.appendChild(t);
    174174        return content_node;
Note: See TracChangeset for help on using the changeset viewer.