- 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/GeneralAction.java
r28202 r28382 31 31 { 32 32 Element message = this.converter.nodeToElement(message_node); 33 33 Document doc = message.getOwnerDocument(); 34 34 35 // the result 35 Element result = this.doc.createElement(GSXML.MESSAGE_ELEM);36 Element page_response = this.doc.createElement(GSXML.RESPONSE_ELEM);36 Element result = doc.createElement(GSXML.MESSAGE_ELEM); 37 Element page_response = doc.createElement(GSXML.RESPONSE_ELEM); 37 38 result.appendChild(page_response); 38 39 … … 87 88 { 88 89 //do the request 89 Element mr_query_message = this.doc.createElement(GSXML.MESSAGE_ELEM);90 Element mr_query_request = GSXML.createBasicRequest( this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext);90 Element mr_query_message = doc.createElement(GSXML.MESSAGE_ELEM); 91 Element mr_query_request = GSXML.createBasicRequest(doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 91 92 92 93 if (request_type.equals("s")) … … 102 103 if (service_params != null) 103 104 { 104 param_list = this.doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);105 GSXML.addParametersToList( this.doc, param_list, service_params);105 param_list = doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 106 GSXML.addParametersToList(doc, param_list, service_params); 106 107 mr_query_request.appendChild(param_list); 107 108 } … … 110 111 if (userInformation != null) 111 112 { 112 mr_query_request.appendChild( this.doc.importNode(userInformation, true));113 mr_query_request.appendChild(doc.importNode(userInformation, true)); 113 114 } 114 115 mr_query_request.setAttribute("remoteAddress", request.getAttribute("remoteAddress")); … … 134 135 135 136 // request the service info for the selected service - should be cached 136 Element mr_info_message = this.doc.createElement(GSXML.MESSAGE_ELEM);137 Element mr_info_request = GSXML.createBasicRequest( this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext);137 Element mr_info_message = doc.createElement(GSXML.MESSAGE_ELEM); 138 Element mr_info_request = GSXML.createBasicRequest(doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext); 138 139 mr_info_message.appendChild(mr_info_request); 139 140 Element mr_info_response = (Element) this.mr.process(mr_info_message); … … 145 146 if (desNode != null) 146 147 { 147 page_response.appendChild((Element) this.doc.importNode(desNode, true));148 page_response.appendChild((Element) doc.importNode(desNode, true)); 148 149 } 149 150
Note:
See TracChangeset
for help on using the changeset viewer.