- Timestamp:
- 2012-08-10T20:31:34+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/OAIXML.java
r25635 r26096 99 99 public static final String GRANULARITY = "granularity"; 100 100 public static final String GS3OAI = "GS3OAI"; 101 public static final String GS_OAI_RESOURCE_URL = "gs.OAIResourceURL"; 101 102 public static final String HAS_OAI = "hasOAI"; 102 103 public static final String HEADER = "header"; … … 177 178 */ 178 179 public static String oai_version = "2.0"; 180 public static String baseURL = ""; 179 181 180 182 /**response owner document */ … … 194 196 return oai_version; 195 197 } 198 199 public static String getBaseURL() { 200 return baseURL; 201 } 202 196 203 public static Element createElement(String tag_name) { 197 204 return response_doc.createElement(tag_name); … … 286 293 } 287 294 /** Read in OAIConfig.xml (residing web/WEB-INF/classes/) and use it to configure the receptionist etc. 288 * the oai_version variable isalso set in here.295 * the oai_version and baseURL variables are also set in here. 289 296 * The init() method is also called in here. */ 290 297 public static Element getOAIConfigXML() { … … 310 317 oai_version = GSXML.getNodeText(protocol_version).trim(); 311 318 319 // initialize baseURL 320 Element base_url_elem = (Element)GSXML.getChildByTagName(oai_config_elem, BASE_URL); 321 baseURL = GSXML.getNodeText(base_url_elem); 322 312 323 //initialize token_expiration 313 324 Element expiration = (Element)GSXML.getChildByTagName(oai_config_elem, RESUMPTION_TOKEN_EXPIRATION); … … 387 398 } 388 399 }//end of for() 389 Element base_url_elem = (Element)GSXML.getChildByTagName(oai_config_elem, BASE_URL); 390 String base_url = GSXML.getNodeText(base_url_elem); 391 GSXML.setNodeText(request_elem, base_url); 400 401 GSXML.setNodeText(request_elem, baseURL); 392 402 393 403 Node resp_date = GSXML.getChildByTagName(response, RESPONSE_DATE);
Note:
See TracChangeset
for help on using the changeset viewer.