Changeset 26180 for other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java
- Timestamp:
- 2012-09-12T19:37:39+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java
r22298 r26180 57 57 static Logger LOG = Logger.getLogger(GS3ServicesAPIA.class); 58 58 59 /** Storing the baseURL, worked out from wsdlURL */ 60 protected String baseURL; 61 59 62 /** Storing language settings for requests and responses*/ 60 63 protected String language; … … 82 85 // this case, it is set to "" (which Greenstone takes as English). 83 86 this.language = ""; 87 88 // work out the baseURL from the wsdlURL, which is just the domain prefix 89 // (e.g. http://localhost:8383) 90 String url = wsdlURLName; 91 int index = url.indexOf("://") + "://".length(); 92 index = url.indexOf('/', index); 93 url = url.substring(0, index); // everything upto the first / separator 94 this.baseURL = url; 95 84 96 } 85 97 … … 164 176 * do not contain relative paths, or otherwise deal with the resolution of 165 177 * relative urls themselves, then return "" from here. */ 166 public String getAssocFileBaseURL() { return ""; } 178 public String getAssocFileBaseURL() { 179 return baseURL; // return ""; // for old GS3 180 } 167 181 168 182 /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface
Note:
See TracChangeset
for help on using the changeset viewer.