Changeset 22297
- Timestamp:
- 2010-06-23T14:50:10+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3services/QBRSOAPServer.java
r22279 r22297 38 38 import org.w3c.dom.Node; 39 39 40 import org.greenstone.util.GlobalProperties; 40 41 import org.greenstone.gsdl3.core.MessageRouter; 41 import org.greenstone.gsdl3.util.GlobalProperties;42 42 import org.greenstone.gsdl3.util.GSFile; 43 43 import org.greenstone.gsdl3.util.GSXML; … … 130 130 protected static final String serviceSubsetOptions = // services 131 131 "paramList displayItemList"; 132 protected static final String docStructureOptions =132 protected static final String structureOptions = 133 133 "entire ancestors parent siblings children descendants"; // note the spelling 134 134 protected static final String structureInfoOptions = 135 135 "numSiblings siblingPosition numChildren"; 136 protected static final String browseStructureOptions =137 "ancestors parent siblings children descendants"; // note the spelling138 136 139 137 … … 481 479 // Create the <paramlist></paramlist> element of param elements, 482 480 // if any; and only if values are legal (that is, if they occur in 483 // static Strings docStructureOptions and structureInfoOptions):481 // static Strings structureOptions and structureInfoOptions): 484 482 // <param name="structure" value = "structure[i]"> 485 483 // <param name="info" value = "info[i]"> … … 489 487 if(structure != null) { 490 488 for(int i = 0; i < structure.length; i++) { 491 if( docStructureOptions.indexOf(structure[i]) != -1) {489 if(structureOptions.indexOf(structure[i]) != -1) { 492 490 paramList.appendChild(GSXML.createParameter( 493 491 this.doc, "structure", structure[i])); … … 695 693 for(int i = 0; i < structureParams.length; i++) { 696 694 // check it is a valid structure parameter 697 if( browseStructureOptions.indexOf(structureParams[i]) != -1) {695 if(structureOptions.indexOf(structureParams[i]) != -1) { 698 696 paramList.appendChild(GSXML.createParameter( 699 697 this.doc, "structure", structureParams[i])); … … 701 699 } 702 700 703 if(infoParams != null ) {701 if(infoParams != null && !infoParams[0].equals("")) { 704 702 for(int i = 0; i < infoParams.length; i++) { 705 703 if(structureInfoOptions.indexOf(infoParams[i]) != -1) { 706 704 paramList.appendChild(GSXML.createParameter( 707 705 this.doc, "info", info[i])); 708 706 } 709 707 }
Note:
See TracChangeset
for help on using the changeset viewer.