Changeset 1654 for MDService2


Ignore:
Timestamp:
12/10/11 21:13:54 (12 years ago)
Author:
gaba
Message:

Utils.getConfig corrections

Location:
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java

    r1651 r1654  
    606606                                MDTransformer transformer = new MDTransformer();
    607607                                // this is necessary for the transformer (in MDUTILS-library) to search for the resources (config and xsls) in the correct context)
    608                                 transformer.configure(Utils.getConfig(), this.getClass().getClassLoader());
     608                                transformer.configure(Utils.getAppConfig("mdservice"), this.getClass().getClassLoader());
    609609                                // set URL as srcFile (for MDTransformer to pass to xsl-scripts)
    610610                                // TODO: WHY??
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/VirtualCollectionProxyAction.java

    r1540 r1654  
    9898                // find out
    9999                //"http://clarin.ids-mannheim.de/vcr/service/virtualcollection";
    100                 String urlstring = Utils.getConfig().getProperty("virtualcollection.uri");
     100                String urlstring = Utils.getConfig("virtualcollection.uri");
    101101                String vcrstr = (String)getVcrid();//getQueryVcrid();
    102102                if (!vcrstr.equals("0")){
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/WorkspaceAction.java

    r1621 r1654  
    160160        public WorkspaceAction () {     
    161161                this.elementtype = WorkspaceAction.SE_WORKSPACE;
    162                 //workspacefilename = Utils.getConfig().getProperty("workspaceprofile.path") + Utils.getConfig().getProperty("workspace.file");
     162                //workspacefilename = Utils.getConfig).getProperty("workspaceprofile.path") + Utils.getConfig().getProperty("workspace.file");
    163163                workspacefilename = Utils.getConfig("workspaceprofile.path") + Utils.getConfig("workspace.file");
    164164                if (workspace_doc == null){
    165                         //workspacefilename = Utils.getConfig().getProperty("workspace.path") + Utils.getConfig().getProperty("workspace.file");
     165                        //workspacefilename = Utils.getConfig).getProperty("workspace.path") + Utils.getConfig).getProperty("workspace.file");
    166166                        initDocument();
    167167                }
     
    225225        public String getBasePath() {           
    226226                if (base_path == null) {
    227                         //base_path = Utils.getConfig().getProperty(getProxyKey() + ".path");
     227                        //base_path = Utils.getConfig).getProperty(getProxyKey() + ".path");
    228228                        base_path = Utils.getConfig(getProxyKey() + ".path");
    229229                }
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java

    r1588 r1654  
    7676       
    7777        public Cache () {               
    78                 cachepath = Utils.getConfig().getProperty("cache.path");
    79                 cacheindex_path = cachepath + Utils.getConfig().getProperty("cacheindex.file");
     78                cachepath = Utils.getConfig("cache.path");
     79                cacheindex_path = cachepath + Utils.getConfig("cacheindex.file");
    8080                cachecounter = initCachecounter();
    8181               
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Termset.java

    r1540 r1654  
    6868
    6969        public static void initTermsets() {
    70                         Document dcrs_setup = Utils.load2Document(Utils.getConfig().getProperty("terms.file"));
     70                        Document dcrs_setup = Utils.load2Document(Utils.getConfig("terms.file"));
    7171               
    7272                //      Utils.load2(Utils.getConfig().getProperty("service.list.file"));                 
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/WorkspaceProfile.java

    r1621 r1654  
    256256       
    257257        public static JSONObject createOptions() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
    258                 String path = Utils.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
     258                String path = Utils.getConfig("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
    259259                File file=new File(path);
    260260                InputStream in  = new BufferedInputStream( new FileInputStream(path));;
     
    308308       
    309309        public static JSONArray createTermsets() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
    310                 String path = Utils.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
     310                String path = Utils.getConfig("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
    311311                File file=new File(path);
    312312                InputStream in  = new BufferedInputStream( new FileInputStream(path));;
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/BasicProxy.java

    r1629 r1654  
    100100               
    101101        public String getBaseURI() {           
    102                 String uri =Utils.getConfig().getProperty(getSourceAction().getActionkey() + ".uri");   
     102                //String uri = Utils.getConfig).getProperty(getSourceAction().getActionkey() + ".uri");
     103                String uri = Utils.getConfig(getSourceAction().getActionkey() + ".uri");
    103104                //String uri = Termset.getTermsetAttr(getSourceAction().getActionkey(), "url");
    104105                return uri;
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SMCProxy.java

    r1621 r1654  
    7272         */             
    7373        public String getBaseURI() {           
    74                 //String uri =Utils.getConfig().getProperty(getSourceAction().getActionkey() + ".uri");
     74                //String uri =Utils.getConfig).getProperty(getSourceAction().getActionkey() + ".uri"); 
    7575                //String uri = Termset.getTermsetAttr(getSourceAction().getActionkey(), "url");
    7676                return "http://localhost:8080/MDService2/smc/";
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SRUProxy.java

    r1630 r1654  
    5252        public String getBaseURI() {           
    5353                log.debug("SRU-repositorypath:" + WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository()));
    54                 String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());//Utils.getConfig().getProperty(getProxyKey() + ".uri");             
     54                String uri = WorkspaceProfile.getRepositoryPath(getSourceAction().getRepository());//Utils.getConfig).getProperty(getProxyKey() + ".uri");             
    5555                return uri;
    5656        }
Note: See TracChangeset for help on using the changeset viewer.