Ignore:
Timestamp:
08/26/11 20:40:35 (13 years ago)
Author:
gaba
Message:

repoaction created ,
options + repositories moved to workspaceprofile

Location:
MDService2/trunk/MDService2
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/WebContent/scripts/mdservice_model.js

    r1493 r1496  
    804804                 uri = link('base',this.query_uri());
    805805         } else {
    806                  if (type == "xml"){
    807                          uri = link('sru',this.sruquery_uri());
    808                  } else {
     806                 //if (type == "xml"){
     807                 //      uri = link('sru',this.sruquery_uri());
     808                 //} else {
    809809                         uri = link('recordset',type, this.query_uri());
    810                 }             
     810                // }           
    811811         }
    812812        return uri;
     
    840840               
    841841                // USE CLIENT PAZPAR
     842                /*
    842843                if (reptype=="pazpar"){
    843844                        //pazpar handling this
     
    845846                        return;
    846847                }
     848         */
     849                // ALL types  = query uri,
     850                // pazpar server usage
     851                uri = link('recordset',this.format, this.query_uri());
    847852               
     853                /*
    848854                if (reptype=="md" ){
    849855                        uri = link('recordset',this.format, this.query_uri());
     
    861867                        }
    862868                }
     869                */
    863870
    864871               
  • MDService2/trunk/MDService2/WebContent/simple_index.jsp

    r1423 r1496  
    1717<body>
    1818<form action="recordset/htmlsimple/" method="get">
     19                                <select name="repository"> 
     20                                 <option value="clarin.at-mirror">clarin.at-mirror</option>     
     21                                 <option value="gu.se-main">gu.se-main</option> 
     22                                 <option value="sru-corpus-ddcon">sru-corpus-ddcon</option>
     23                                 <option value="pazpar">pazpar</option>
     24                                </select>
     25
    1926                                <input type="text" name="q" ></input>
    2027                               
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/CollectionProxyAction.java

    r1108 r1496  
    44import java.net.MalformedURLException;
    55import java.net.URL;
     6
     7import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
    68
    79import net.sf.json.JSONObject;
     
    5557                if (base_url == null) {
    5658                        //base_url = new URL(Admin.getConfig().getProperty(getProxyKey() + ".uri"));
    57                         base_url = new URL(getRepositoryPath());
     59                        base_url = new URL(WorkspaceProfile.getRepositoryPath(getRepository()));
    5860                                                //Admin.notifyUser("TEST-URLnew:" + base_url.toString());
    5961                       
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java

    r1495 r1496  
    2828import com.opensymphony.xwork2.ActionSupport;
    2929import eu.clarin.cmdi.mdservice.model.Diagnostics;
     30import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
    3031
    3132/**
     
    4243        private static final long serialVersionUID = 1L;
    4344       
    44         private static JSONArray repositories = null;
    45         private static JSONObject wp_options = null;
    4645       
    4746        private Diagnostics diagnostics;
     
    7877         
    7978         public void setRepositoryByIndex(int id){
    80                  try {
    81                                 setRepositories(GenericProxyAction.createRepositories());
    82                                 // static repositories
    83                                 net.sf.json.JSONArray json = getRepositories();
     79               
     80                                net.sf.json.JSONArray json = WorkspaceProfile.getRepositories();
    8481                                if (json.size() > 0){
    8582                                        repository = json.getJSONObject(id).getString("name");
    8683                                }
    87                         } catch (IOException e) {
    88                                 // TODO Auto-generated catch block
    89                                 e.printStackTrace();
    90                         } catch (InterruptedException e) {
    91                                 // TODO Auto-generated catch block
    92                                 e.printStackTrace();
    93                         } catch (TransformerException e) {
    94                                 // TODO Auto-generated catch block
    95                                 e.printStackTrace();
    96                         } catch (NoStylesheetException e) {
    97                                 // TODO Auto-generated catch block
    98                                 e.printStackTrace();
    99                         }
     84                       
    10085         }
    10186         
     
    327312*/
    328313       
    329         public JSONArray getRepositories(){
    330                 return repositories;
    331         }
    332        
    333         public void setRepositories(JSONArray rep){
    334                 GenericProxyAction.repositories = rep;
    335         }
    336        
    337         public JSONObject getWPOptions(){
    338                 return wp_options;
    339         }
    340        
    341         public void setWPOptions(JSONObject op){
    342                 GenericProxyAction.wp_options = op;
    343         }
    344314       
    345315        /**
     
    435405        }
    436406       
    437         /*
    438          * TODO: this should go to Utilities!
    439          */
    440         public  static String convertStreamToString(InputStream is) { 
    441                
    442                 BufferedReader reader = new BufferedReader(new InputStreamReader(is)); 
    443                 StringBuilder sb = new StringBuilder(); 
    444                 String line = null; 
    445                
    446                 try {
    447                         while ((line = reader.readLine()) != null) { 
    448                                          sb.append(line + "\n"); 
    449                         }
    450                 } catch (IOException e) {
    451                         // TODO Auto-generated catch block
    452                         e.printStackTrace();
    453                 }  finally {
    454                         try {
    455                                 is.close();
    456                         } catch (IOException e) {
    457                                 // TODO Auto-generated catch block
    458                                 e.printStackTrace();
    459                         }
    460                         try {
    461                                 is.reset();
    462                         } catch (IOException e) {
    463                                 // TODO Auto-generated catch block
    464                                 e.printStackTrace();
    465                         }
    466                 }
    467                  
    468                
    469                 return sb.toString(); 
    470         }
    471 
    472        
    473         public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
    474                 String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
    475                 File file=new File(path);
    476                 InputStream in  = new BufferedInputStream( new FileInputStream(path));;
    477                
    478                 MDTransformer transformer = new MDTransformer();
    479                 transformer.setSrcFile(file.toURI().toURL());
    480                 transformer.setParams(MDTransformer.createParamsMap("xml2json"));
    481                 InputStream jsonstream = transformer.transformXML(in);
    482                
    483                 JSONObject json = JSONObject.fromObject(convertStreamToString(jsonstream));
    484                 JSONArray wparray = json.getJSONObject("Profiles").getJSONArray("WorkspaceProfiles");
    485                 JSONArray array = null;
    486                 for (int i = 0; i < wparray.size(); ++i) {     
    487                         JSONObject wp = wparray.getJSONObject(i);
    488                         if (wp.get("Repositories") != null){
    489                                 array = wp.getJSONArray("Repositories");
    490                                 break;
    491                         }
    492                 }       
    493                
    494                 // repository as static variable
    495                 return array;
    496        
    497                 // repository as session attribute
    498                 /*
    499                 HttpSession session = getServletRequest().getSession();
    500                 //JSONArray param = (JSONArray) session.getAttribute("repositories");
    501                 JSONArray param = new JSONArray();
    502         param.add(array);
    503         session.setAttribute("repositories", param);
    504                  */
    505         }
    506        
    507         public static JSONObject createWPOptions() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
    508                 String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
    509                 File file=new File(path);
    510                 InputStream in  = new BufferedInputStream( new FileInputStream(path));;
    511                
    512                 MDTransformer transformer = new MDTransformer();
    513                 transformer.setSrcFile(file.toURI().toURL());
    514                 transformer.setParams(MDTransformer.createParamsMap("xml2json"));
    515                 InputStream jsonstream = transformer.transformXML(in);
    516                
    517                 JSONObject json = JSONObject.fromObject(convertStreamToString(jsonstream));
    518                 JSONArray wparray = json.getJSONObject("Profiles").getJSONArray("WorkspaceProfiles");
    519                 JSONObject obj = null;
    520                 for (int i = 0; i < wparray.size(); ++i) {     
    521                         JSONObject wp = wparray.getJSONObject(i);
    522                         if (wp.get("Options") != null){
    523                                 obj = wp.getJSONObject("Options");
    524                                 break;
    525                         }
    526                 }       
    527                
    528                 // options as static variable
    529                 return obj;
    530        
    531         }
    532        
    533         public String getWPOption(String opt_key){
    534                 String option_val = null;
    535                
    536                
    537                 if (wp_options == null ) {
    538                         try {
    539                                 setWPOptions(GenericProxyAction.createWPOptions());
    540                         } catch (IOException e) {
    541                                 // TODO Auto-generated catch block
    542                                 e.printStackTrace();
    543                         } catch (InterruptedException e) {
    544                                 // TODO Auto-generated catch block
    545                                 e.printStackTrace();
    546                         } catch (TransformerException e) {
    547                                 // TODO Auto-generated catch block
    548                                 e.printStackTrace();
    549                         } catch (NoStylesheetException e) {
    550                                 // TODO Auto-generated catch block
    551                                 e.printStackTrace();
    552                         }
    553                 }
    554                 // static options
    555                 if (wp_options != null){
    556                         net.sf.json.JSONObject json = getWPOptions();
    557                         option_val = json.getString(opt_key);
    558                 }
    559                
    560                
    561                 return option_val;
    562                
    563         }
    564        
    565         public String getRepositoryPath(){
    566                 String repository_path = null;
    567                
    568                
    569                 if (repositories == null ) {
    570                         try {
    571                                 setRepositories(GenericProxyAction.createRepositories());
    572                         } catch (IOException e) {
    573                                 // TODO Auto-generated catch block
    574                                 e.printStackTrace();
    575                         } catch (InterruptedException e) {
    576                                 // TODO Auto-generated catch block
    577                                 e.printStackTrace();
    578                         } catch (TransformerException e) {
    579                                 // TODO Auto-generated catch block
    580                                 e.printStackTrace();
    581                         } catch (NoStylesheetException e) {
    582                                 // TODO Auto-generated catch block
    583                                 e.printStackTrace();
    584                         }
    585                 }
    586                 // static repositories
    587                 net.sf.json.JSONArray json = getRepositories();
    588                 for(int i=0;i<json.size();i++){
    589                         if (json.getJSONObject(i).getString("name").equals(getRepository())){
    590                                 repository_path =  json.getJSONObject(i).getString("uri");
    591                         }
    592                 }
    593                 //Admin.notifyUser("REPOSITORY_PATH:" + repository_path);
    594                
    595                 //session repositories
    596                 /*
    597                 HttpSession session = getServletRequest().getSession();
    598                 json = (net.sf.json.JSONArray) session.getAttribute("repositories");
    599                 for(int i=0;i<json.size();i++){
    600                         if (json.getJSONObject(i).getInt("id") == getRepository()){
    601                                 repository_path =  json.getJSONObject(i).getString("uri");
    602                         }
    603                 }
    604                 Admin.notifyUser("REPOSITORY_PATH-SESSIONATTR:" + repository_path);
    605                 */
    606                 return repository_path;
    607                
    608         }
    609        
    610         public String getRepositoryType(){
    611         String typestr = "";
    612                
    613                 if (repositories == null ) {
    614                         try {
    615                                 setRepositories(GenericProxyAction.createRepositories());
    616                         } catch (IOException e) {
    617                                 // TODO Auto-generated catch block
    618                                 e.printStackTrace();
    619                         } catch (InterruptedException e) {
    620                                 // TODO Auto-generated catch block
    621                                 e.printStackTrace();
    622                         } catch (TransformerException e) {
    623                                 // TODO Auto-generated catch block
    624                                 e.printStackTrace();
    625                         } catch (NoStylesheetException e) {
    626                                 // TODO Auto-generated catch block
    627                                 e.printStackTrace();
    628                         }
    629                 }
    630                 // static repositories
    631                 net.sf.json.JSONArray json = getRepositories();
    632                 for(int i=0;i<json.size();i++){
    633                         if (json.getJSONObject(i).getString("name").equals(getRepository())){
    634                                 typestr =  json.getJSONObject(i).getString("type");
    635                         }
    636                 }
    637                
    638                 return (typestr);
    639 
    640         }
    641         public Boolean isSRURepository(){
    642                 //Boolean issru = false;
    643                 String typestr = getRepositoryType();
    644                
    645                 return (typestr.equals("sru"));
    646                
    647         }
    648         public String addDurationKey(){
     407       
     408       
     409                public String addDurationKey(){
    649410                String req_key = getRequestKey();
    650411       
     
    682443                }
    683444                //if (getRepository() != null){
    684                 hm.put("repository_name", String.valueOf(getRepository()));     
     445                hm.put("repository_name", String.valueOf(getRepository()));
     446                hm.put("repository_type", WorkspaceProfile.getRepositoryType(this.getRepository()));
    685447                //}
    686448       
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Helpers.java

    r627 r1496  
    11package eu.clarin.cmdi.mdservice.action;
    22
     3import java.io.BufferedReader;
    34import java.io.IOException;
    45import java.io.InputStream;
     6import java.io.InputStreamReader;
    57import java.io.OutputStream;
    68import java.io.PrintStream;
     
    1012import javax.xml.parsers.FactoryConfigurationError;
    1113import javax.xml.parsers.ParserConfigurationException;
     14import javax.xml.xpath.XPath;
     15import javax.xml.xpath.XPathConstants;
     16import javax.xml.xpath.XPathExpression;
     17import javax.xml.xpath.XPathExpressionException;
     18import javax.xml.xpath.XPathFactory;
    1219
    1320import org.w3c.dom.Document;
     
    6471                }
    6572        }
     73       
     74
     75        public static Document getDocument(InputStream is){
     76                Document doc = null;
     77                DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
     78        DocumentBuilder docBuilder;
     79                try {
     80                        docBuilder = docFactory.newDocumentBuilder();
     81                        doc = docBuilder.parse(is);
     82                } catch (ParserConfigurationException e) {
     83                        // TODO Auto-generated catch block
     84                        e.printStackTrace();
     85                } catch (SAXException e) {
     86                        // TODO Auto-generated catch block
     87                        e.printStackTrace();
     88                } catch (IOException e) {
     89                        // TODO Auto-generated catch block
     90                        e.printStackTrace();
     91                }       
     92                return doc;
     93        }
     94       
     95        public static String getDocumentData(InputStream is, String expression){
     96                String data = "";
     97       
     98                XPathFactory factory = XPathFactory.newInstance();
     99            XPath xpath = factory.newXPath();
     100            XPathExpression expr;
     101                try {
     102                        expr = xpath.compile(expression);
     103                        data = (String) expr.evaluate(getDocument(is), XPathConstants.STRING);
     104                } catch (XPathExpressionException e) {
     105                        // TODO Auto-generated catch block
     106                        e.printStackTrace();
     107                }
     108                       
     109                return data;
     110               
     111        }
     112        /*
     113         * TODO: this should go to Utilities!
     114         */
     115        public  static String convertStreamToString(InputStream is) { 
     116               
     117                BufferedReader reader = new BufferedReader(new InputStreamReader(is)); 
     118                StringBuilder sb = new StringBuilder(); 
     119                String line = null; 
     120               
     121                try {
     122                        while ((line = reader.readLine()) != null) { 
     123                                         sb.append(line + "\n"); 
     124                        }
     125                } catch (IOException e) {
     126                        // TODO Auto-generated catch block
     127                        e.printStackTrace();
     128                }  finally {
     129                        try {
     130                                is.close();
     131                        } catch (IOException e) {
     132                                // TODO Auto-generated catch block
     133                                e.printStackTrace();
     134                        }
     135                        try {
     136                                is.reset();
     137                        } catch (IOException e) {
     138                                // TODO Auto-generated catch block
     139                                e.printStackTrace();
     140                        }
     141                }
     142                 
     143               
     144                return sb.toString(); 
     145        }
     146
    66147
    67148}
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.java

    r1495 r1496  
    2727
    2828import eu.clarin.cmdi.mdservice.model.Query;
     29import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
    2930
    3031/**
     
    4950        @Override       
    5051        public String getBaseURI() {           
    51                 String uri = getRepositoryPath();               
     52                String uri = WorkspaceProfile.getRepositoryPath(getRepository());               
    5253                return uri;
    5354        }
     
    7576         }
    7677 
     78         public String fullQueryString(){
     79                String full_query_string= this.getQ();
     80                       
     81                if (!getSquery().equals("") && !this.getQ().equals("")){
     82                                full_query_string = "(" + this.getSquery() + " ) and (" + this.getQ() + ")";
     83                        } else if (!this.getSquery().equals("")) {
     84                                full_query_string = this.getSquery();
     85                        } else if (!this.getQ().equals("")){
     86                                full_query_string = this.getQ();
     87                        } else {
     88                                full_query_string = "";
     89                        }
     90               
     91                return full_query_string;
     92         }
     93         
    7794        /**
    7895         * uses base_url + url_pattern (parametrized by actionkey) to form a url
     
    8097         * @throws Exception
    8198         */
     99         @Override
    82100        public URL getTargetRequest() throws IOException {
    83101        // URL targetURL =new URL( base_url, compname + ".xml");
     
    113131
    114132        @Override
     133        public InputStream getSourceStream() throws IOException, NoStylesheetException {
     134               
     135                /*if (getCommand() == null){
     136                        try {
     137                                return getSourcePz2();
     138                        } catch (Exception e) {
     139                                // TODO Auto-generated catch block
     140                                e.printStackTrace();
     141                        }
     142                }
     143                        */
     144                return super.getSourceStream();
     145        }
     146       
     147        @Override
    115148        public void prepare() throws Exception{
    116149                super.prepare();
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java

    r1492 r1496  
    3434
    3535import eu.clarin.cmdi.mdservice.model.Query;
     36import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
    3637
    3738/**
     
    122123        @Override
    123124        public String getBaseURI() {           
    124                 String uri = getRepositoryPath();               
     125                String uri = WorkspaceProfile.getRepositoryPath(getRepository());               
    125126                return uri;
    126127        }
     
    135136        }
    136137       
    137 
     138/*
    138139        @Override
    139140        public InputStream getSourceStream() throws IOException, NoStylesheetException {
     
    186187               
    187188        }
     189        */
     190        /*
    188191        public InputStream getSourcePz2() throws Exception {
    189192               
     
    224227                return is;
    225228        }
    226 
     229*/
    227230       
    228231}
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/SRUProxyAction.java

    r1471 r1496  
    5151import eu.clarin.cmdi.mdservice.model.Diagnostic;
    5252import eu.clarin.cmdi.mdservice.model.Diagnostics;
     53import eu.clarin.cmdi.mdservice.model.WorkspaceProfile;
    5354
    5455
     
    7980        private String x_cmd_repository;
    8081        private String x_cmd_collections;
     82        private Set paramSet;
    8183
    8284        private MDRepoProxyAction mdrepoproxyaction;
     
    8890        private static int OP_EXPLAIN = 2;
    8991        private static int OP_SCAN = 3;
     92       
    9093       
    9194        //TODO cache after analysis
     
    120123                 this.startRecord = 1;
    121124                 this.maximumRecords = 50;
     125                 
     126                 if (getServletRequest() != null){
     127                         this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
     128                         this.setRepository(this.getX_cmd_repository());
     129                         paramSet = getServletRequest().getParameterMap().entrySet();                   
     130                 }
     131                 
     132                //TODO xsl usage according particular repositories ?
     133                 this.setActionkey("sru");
    122134         }
    123135         
     
    285297        @Override
    286298        public String getBaseURI() {           
    287                 Admin.notifyUser("SRU-repositorypath:" + getRepositoryPath());
    288                 String uri = getRepositoryPath();//Admin.getConfig().getProperty(getProxyKey() + ".uri");               
     299                Admin.notifyUser("SRU-repositorypath:" + WorkspaceProfile.getRepositoryPath(getRepository()));
     300                String uri = WorkspaceProfile.getRepositoryPath(getRepository());//Admin.getConfig().getProperty(getProxyKey() + ".uri");               
    289301                return uri;
    290302        }
     
    358370                                                        if (this.scanClause.equals("cmd.Repository")){
    359371                                                                XMLSerializer xmlserializer = new XMLSerializer();
    360                                                                 String xml = xmlserializer.write( mdrepoproxyaction.getRepositories() ); 
     372                                                                String xml = xmlserializer.write( WorkspaceProfile.getRepositories());//mdrepoproxyaction.getRepositories() ); 
    361373                                                                this.setResultStream(new ByteArrayInputStream(xml.getBytes("UTF-8")));
    362374
     
    498510        }
    499511       
     512        //TODO create query + query.toURLParams ?
     513        public String createURLParams(){
     514                String params = "";
     515               
     516                //TODO params
     517                if (paramSet == null){
     518                        if (!(operation == null)){
     519                                params = params + "operation=" + operation;
     520                        }
     521                        if (!(version == null)){
     522                                params = params + "&version=" + version;
     523                        }
     524                        if (!(query == null)){
     525                                params = params + "&query=" + query;
     526                        }
     527                        if (getStartRecord() > 0){
     528                                params = params + "&startRecord=" + String.valueOf(getStartRecord());
     529                        }
     530                        if (getMaximumRecords()> 0){
     531                                params = params + "&numRecords=" + String.valueOf(getMaximumRecords());
     532                        }
     533                } else {
     534                        Iterator i = paramSet.iterator();
     535                        params = "";
     536                    while(i.hasNext()){
     537                              Map.Entry me = (Map.Entry)i.next();
     538                              if (!(me.getKey().equals("x-cmd-repository") || me.getKey().equals("x-cmd-collections"))){
     539                                      params = params + "&" + me.getKey() + "=" + ((String[])me.getValue())[0]; 
     540                              }
     541                        }
     542                    params = params.substring(1);
     543
     544                }
     545
     546                return params;
     547        }
    500548        @Override
    501549        public URL getTargetRequest() throws IOException {
     
    508556                        requestURI = this.getBaseURI();
    509557                }
    510                 //TODO params
    511                 Set set = getServletRequest().getParameterMap().entrySet();
    512                 Iterator i = set.iterator();
    513                 String params = "";
    514             while(i.hasNext()){
    515                       Map.Entry me = (Map.Entry)i.next();
    516                       if (!(me.getKey().equals("x-cmd-repository") || me.getKey().equals("x-cmd-collections"))){
    517                               params = params + "&" + me.getKey() + "=" + ((String[])me.getValue())[0]; 
    518                       }
    519                 }
    520             params = params.substring(1);
    521             targetURL = new URL(requestURI + "?" + params);
     558           
     559            targetURL = new URL(requestURI + "?" + createURLParams());
    522560                return targetURL;
    523561        }
     
    525563        @Override
    526564        public void prepare() throws Exception{
    527                 this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
    528                 this.setRepository(this.getX_cmd_repository());
     565                //this.setX_cmd_repository(getServletRequest().getParameter("x-cmd-repository"));
     566                //this.setRepository(this.getX_cmd_repository());
    529567                //TODO xsl usage according particular repositories ?
    530                 this.setActionkey("sru");
     568                //this.setActionkey("sru");
    531569                //this.setFormat("xml");
    532570               
    533571                //extern SRU repository
    534                 if (this.isSRURepository() || this.getBaseURI() == null){
     572                if (WorkspaceProfile.isSRURepository(getRepository()) || this.getBaseURI() == null){
    535573                        super.prepare();
    536574                }
  • MDService2/trunk/MDService2/src/struts.xml

    r1488 r1496  
    278278               
    279279                <!-- <action name="*/*" class="eu.clarin.cmdi.mdservice.action.MDServiceAction" method="{2}">   -->
    280                 <action name="*/*" class="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction" method="execute">
     280                <!-- <action name="*/*" class="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction" method="execute"> -->
     281                <action name="*/*" class="eu.clarin.cmdi.mdservice.action.RepoProxyAction" method="execute">
    281282                           <param name="format">{2}</param>
    282283                           <param name="actionkey">{1}</param>
     
    289290        <!-- We accept the q-param encoded in the url as well.
    290291                Especially meant for simple queries (for example for collections) -->
    291                 <action name="*/*/*/*" class="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction" method="execute">
     292                <!-- <action name="*/*/*/*" class="eu.clarin.cmdi.mdservice.action.MDRepoProxyAction" method="execute"> -->
     293                <action name="*/*/*/*" class="eu.clarin.cmdi.mdservice.action.RepoProxyAction" method="execute">
     294                 
    292295                           <param name="actionkey">{1}</param>
    293296                           <param name="format">{2}</param>
Note: See TracChangeset for help on using the changeset viewer.