Changeset 1656 for MDService2


Ignore:
Timestamp:
12/10/11 21:50:48 (12 years ago)
Author:
vronk
Message:

iimplementing SMC requests (pass to SMC-lib)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SMCProxy.java

    r1654 r1656  
    105105        public InputStream getSourceStream() throws IOException, NoStylesheetException, CQLParseException {
    106106                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                }
    108120                       
    109                 return smc.listTermsets("");           
    110121        }
    111122
Note: See TracChangeset for help on using the changeset viewer.