- Timestamp:
- 2014-04-10T14:39:33+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/Receptionist.java
r28248 r28966 33 33 protected HashMap<String, Object> config_params = null; 34 34 /** container Document to create XML Nodes */ 35 protected Document doc = null;35 //protected Document doc = null; 36 36 37 37 /** a converter class to parse XML and create Docs */ … … 54 54 { 55 55 this.converter = new XMLConverter(); 56 this.doc = this.converter.newDOM();56 //this.doc = XMLConverter.newDOM(); 57 57 this.action_map = new HashMap<String, Action>(); 58 58 } … … 182 182 public Node process(Node message_node) 183 183 { 184 Element message = this.converter.nodeToElement(message_node);184 Element message = GSXML.nodeToElement(message_node); 185 185 186 186 // get the request out of the message - assume that there is only one … … 242 242 preProcessRequest(request); 243 243 // set up the page 244 Element page = this.doc.createElement(GSXML.PAGE_ELEM); 244 Document doc = XMLConverter.newDOM(); 245 Element page = doc.createElement(GSXML.PAGE_ELEM); 245 246 page.setAttribute(GSXML.LANG_ATT, request.getAttribute(GSXML.LANG_ATT)); 246 247 // just in case these namespaces end up in the page and we want to display the XML … … 273 274 274 275 // the request is part of the page 275 page.appendChild(GSXML.duplicateWithNewName( this.doc, request, GSXML.PAGE_REQUEST_ELEM, true));276 page.appendChild(GSXML.duplicateWithNewName(doc, request, GSXML.PAGE_REQUEST_ELEM, true)); 276 277 // add the response too 277 Element page_response = GSXML.duplicateWithNewName( this.doc, (Element) GSXML.getChildByTagName(action_response, GSXML.RESPONSE_ELEM), GSXML.PAGE_RESPONSE_ELEM, true);278 Element page_response = GSXML.duplicateWithNewName(doc, (Element) GSXML.getChildByTagName(action_response, GSXML.RESPONSE_ELEM), GSXML.PAGE_RESPONSE_ELEM, true); 278 279 page.appendChild(page_response); 279 280
Note:
See TracChangeset
for help on using the changeset viewer.