Changeset 1656 for MDService2
- Timestamp:
- 12/10/11 21:50:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SMCProxy.java
r1654 r1656 105 105 public InputStream getSourceStream() throws IOException, NoStylesheetException, CQLParseException { 106 106 SMC smc = new SMC(); 107 smc.addParam("operation", "termsets"); 107 108 smc.addParam("operation", getSourceAction().getActionkey()); 109 smc.addParam("context", getParam("context") ); 110 smc.addParam("term", getParam("term") ); 111 112 if (getSourceAction().getActionkey().equals("list")) { 113 return smc.listTerms(getParam("context")); 114 } else if (getSourceAction().getActionkey().equals("map")) { 115 return smc.map(getParam("term")); 116 } else { 117 // TODO: return diagnostics!! 118 return null; 119 } 108 120 109 return smc.listTermsets("");110 121 } 111 122
Note: See TracChangeset
for help on using the changeset viewer.