Changeset 1488 for MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java
- Timestamp:
- 08/21/11 20:31:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java
r1481 r1488 93 93 // TODO Auto-generated catch block 94 94 e.printStackTrace(); 95 } catch (NoStylesheetException e) { 96 // TODO Auto-generated catch block 97 e.printStackTrace(); 95 98 } 96 99 } … … 196 199 public String getActionContentType() { 197 200 if (format.toLowerCase().startsWith("html")) { 198 this.actionContentType = "text/html"; 201 this.actionContentType = "text/html"; 202 //this.actionContentType = "application/xhtml+xml"; 199 203 } else { 200 204 this.actionContentType = "text/xml"; … … 408 412 return key; 409 413 } 410 public InputStream getSourceStream() throws IOException {414 public InputStream getSourceStream() throws IOException, NoStylesheetException { 411 415 return getTargetRequest().openStream(); 412 416 // Admin.notifyUser(getProxyKey() + ".getSourceStream() - unable to open stream: " + getTargetRequest(); … … 446 450 447 451 448 public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException {452 public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException, NoStylesheetException{ 449 453 String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER; 450 454 File file=new File(path); … … 452 456 453 457 MDTransformer transformer = new MDTransformer(); 454 transformer.setSrcFile(file.toUR L());458 transformer.setSrcFile(file.toURI().toURL()); 455 459 transformer.setParams(MDTransformer.createParamsMap("xml2json")); 456 460 InputStream jsonstream = transformer.transformXML(in); … … 497 501 // TODO Auto-generated catch block 498 502 e.printStackTrace(); 503 } catch (NoStylesheetException e) { 504 // TODO Auto-generated catch block 505 e.printStackTrace(); 499 506 } 500 507 } … … 536 543 e.printStackTrace(); 537 544 } catch (TransformerException e) { 545 // TODO Auto-generated catch block 546 e.printStackTrace(); 547 } catch (NoStylesheetException e) { 538 548 // TODO Auto-generated catch block 539 549 e.printStackTrace();
Note: See TracChangeset
for help on using the changeset viewer.