Changeset 26123 for main/trunk
- Timestamp:
- 2012-08-16T21:21:02+12:00 (12 years ago)
- Location:
- main/trunk/greenstone3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/resources/java/QBRSOAPServer.java.in
r22295 r26123 45 45 import org.greenstone.gsdl3.util.GSFile; 46 46 import org.greenstone.gsdl3.util.GSXML; 47 import org.greenstone.gsdl3.util.UserContext; 47 48 import org.greenstone.gsdl3.util.XMLConverter; 48 49 … … 265 266 // <message><request lang="en" to="" type="describe" uid="" /></message> 266 267 Element request = GSXML.createBasicRequest( 267 this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, lang, "");268 this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, new UserContext(lang, "")); 268 269 269 270 // Check if only a subset of this Module Interface's data is asked … … 329 330 Element request = GSXML.createBasicRequest( 330 331 this.doc, GSXML.REQUEST_TYPE_PROCESS, 331 collection+"/"+service, lang, "");332 collection+"/"+service, new UserContext(lang, "")); 332 333 333 334 request.appendChild(paramList); … … 421 422 Element request = GSXML.createBasicRequest( 422 423 doc, GSXML.REQUEST_TYPE_PROCESS, 423 collection+"/DocumentContentRetrieve", lang, "");424 collection+"/DocumentContentRetrieve", new UserContext(lang, "")); 424 425 425 426 // create an empty <paramlist /> element (as example in manual) … … 481 482 Element request = GSXML.createBasicRequest( 482 483 doc, GSXML.REQUEST_TYPE_PROCESS, 483 collection+"/DocumentStructureRetrieve", lang, "");484 collection+"/DocumentStructureRetrieve", new UserContext(lang, "")); 484 485 485 486 // Create the <paramlist></paramlist> element of param elements, … … 632 633 Element message = doc.createElement(GSXML.MESSAGE_ELEM); 633 634 Element request = GSXML.createBasicRequest(doc, 634 GSXML.REQUEST_TYPE_PROCESS, to, lang, "");635 GSXML.REQUEST_TYPE_PROCESS, to, new UserContext(lang, "")); 635 636 636 637 request.appendChild(metadataParamList); … … 692 693 // <message><request lang="en" to="" type="process" uid="" /></message> 693 694 Element request = GSXML.createBasicRequest(this.doc, 694 GSXML.REQUEST_TYPE_PROCESS, collection+"/"+browseService, lang, "");695 GSXML.REQUEST_TYPE_PROCESS, collection+"/"+browseService, new UserContext(lang, "")); 695 696 696 697 // <param name="structure" value = "structureParams[i]"> -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/UserContext.java
r24993 r26123 14 14 _lang = xmlRequest.getAttribute(GSXML.LANG_ATT); 15 15 _userID = xmlRequest.getAttribute(GSXML.USER_ID_ATT); 16 } 17 18 public UserContext(String lang, String userID) 19 { 20 _lang = lang; 21 _userID = userID; 16 22 } 17 23
Note:
See TracChangeset
for help on using the changeset viewer.