- Timestamp:
- 2013-10-10T17:21:30+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/AppletAction.java
r26133 r28382 25 25 26 26 Element message = this.converter.nodeToElement(message_node); 27 27 Document doc = message.getOwnerDocument(); 28 28 29 Element request = (Element) GSXML.getChildByTagName(message, GSXML.REQUEST_ELEM); 29 Element result = this.doc.createElement(GSXML.MESSAGE_ELEM);30 Element page_response = this.doc.createElement(GSXML.RESPONSE_ELEM);30 Element result = doc.createElement(GSXML.MESSAGE_ELEM); 31 Element page_response = doc.createElement(GSXML.RESPONSE_ELEM); 31 32 result.appendChild(page_response); 32 33 … … 62 63 // we are processing stuff for the applet send a message to the service, type="query", and take out the something element, and return that as our result - the applet must take xml 63 64 64 Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM);65 Element mr_request = GSXML.createBasicRequest( this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext);65 Element mr_message = doc.createElement(GSXML.MESSAGE_ELEM); 66 Element mr_request = GSXML.createBasicRequest(doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 66 67 mr_message.appendChild(mr_request); 67 68 // just append all the params for now - should filter out unneeded ones 68 mr_request.appendChild( this.doc.importNode(cgi_param_list, true));69 mr_request.appendChild(doc.importNode(cgi_param_list, true)); 69 70 70 71 // process the request … … 80 81 // get the applet description, and the collection info if a collection is specified 81 82 82 Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM);83 Element applet_request = GSXML.createBasicRequest( this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext);83 Element mr_message = doc.createElement(GSXML.MESSAGE_ELEM); 84 Element applet_request = GSXML.createBasicRequest(doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext); 84 85 mr_message.appendChild(applet_request); 85 86 … … 89 90 String path = GSPath.appendLink(GSXML.RESPONSE_ELEM, GSXML.SERVICE_ELEM); 90 91 //path = GSPath.appendLink(path, GSXML.APPLET_ELEM); 91 Element service_elem = (Element) this.doc.importNode(GSXML.getNodeByPath(mr_response, path), true);92 Element service_elem = (Element) doc.importNode(GSXML.getNodeByPath(mr_response, path), true); 92 93 Element applet_elem = (Element) GSXML.getChildByTagName(service_elem, GSXML.APPLET_ELEM); 93 94 // must handle any params that have values that are not
Note:
See TracChangeset
for help on using the changeset viewer.