Changeset 1510 for MDService2
- Timestamp:
- 09/03/11 12:17:02 (13 years ago)
- Location:
- MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java
r1509 r1510 231 231 long startMillis = System.currentTimeMillis(); 232 232 long timeout = 0; 233 if ( this.getWPOption("pazpartimeout") == null){233 if (WorkspaceProfile.getOption("pazpartimeout") == null){ 234 234 timeout = 1000; 235 235 } else { 236 timeout = Integer.parseInt( this.getWPOption("pazpartimeout"));236 timeout = Integer.parseInt(WorkspaceProfile.getOption("pazpartimeout")); 237 237 } 238 238 while (Integer.parseInt(activeclients) > 0){ -
MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/RepoProxyAction.java
r1509 r1510 147 147 return getSourcePz2(); 148 148 } catch (Exception e) { 149 // TODO Auto- generated catch block149 // TODO Auto-,generated catch block 150 150 e.printStackTrace(); 151 151 } … … 189 189 Admin.notifyUser("RPA.getActionkey:" + getActionkey()); 190 190 191 Query query = new Query(getSquery(), getQ(),getActionkey()); 192 193 // check if the query could get parsed 194 if (query.isStatus(Query.PARSEERROR)) { 195 Admin.notifyUser("RPA.query.PARSEERROR:" + query.getMsg()); 196 // pass this bad news to the client 197 setUserMsg(query.getMsg()); 198 return null; 199 } else { 200 query.setMaxdepth(getMaxdepth()); 201 query.setCollection(getCollection()); 202 query.setColumns(getColumns()); 203 query.setMaximumItems(getMaximumItems()); 204 query.setStartItem(getStartItem()); 205 query.setOptions(getOptions()); 206 query.setSort(getSort()); 207 208 URL targetURL = null; 209 targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() ); 210 Admin.notifyUser("RPA.targetURL.query.toURLParam:" + query.toURLParam()); 191 192 // Query query = new Query(getSquery(), getQ(),getActionkey()); 193 194 195 URL targetURL = getTargetProxy().getTargetRequest(); 196 // targetURL =new URL( getBaseURL(), urls.get(getActionkey()) + query.toURLParam() ); 197 198 //Admin.notifyUser("RPA.targetURL.query.toURLParam:" + query.toURLParam()); 211 199 Admin.notifyUser("RPA.targetURL:" + targetURL); 212 200 return targetURL; 213 }201 214 202 } 215 203 -
MDService2/branches/MDService_simple/src/eu/clarin/cmdi/mdservice/action/SRUProxyAction.java
r1509 r1510 442 442 } 443 443 444 /** TODO: move to Utils 445 * 446 * @param stream 447 * @return 448 * @throws IOException 449 */ 444 450 public static String inputStreamAsString(InputStream stream) 445 451 throws IOException {
Note: See TracChangeset
for help on using the changeset viewer.