Changeset 1654 for MDService2
- Timestamp:
- 12/10/11 21:13:54 (12 years ago)
- 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 606 606 MDTransformer transformer = new MDTransformer(); 607 607 // 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.get Config(), this.getClass().getClassLoader());608 transformer.configure(Utils.getAppConfig("mdservice"), this.getClass().getClassLoader()); 609 609 // set URL as srcFile (for MDTransformer to pass to xsl-scripts) 610 610 // TODO: WHY?? -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/VirtualCollectionProxyAction.java
r1540 r1654 98 98 // find out 99 99 //"http://clarin.ids-mannheim.de/vcr/service/virtualcollection"; 100 String urlstring = Utils.getConfig( ).getProperty("virtualcollection.uri");100 String urlstring = Utils.getConfig("virtualcollection.uri"); 101 101 String vcrstr = (String)getVcrid();//getQueryVcrid(); 102 102 if (!vcrstr.equals("0")){ -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/WorkspaceAction.java
r1621 r1654 160 160 public WorkspaceAction () { 161 161 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"); 163 163 workspacefilename = Utils.getConfig("workspaceprofile.path") + Utils.getConfig("workspace.file"); 164 164 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"); 166 166 initDocument(); 167 167 } … … 225 225 public String getBasePath() { 226 226 if (base_path == null) { 227 //base_path = Utils.getConfig ().getProperty(getProxyKey() + ".path");227 //base_path = Utils.getConfig).getProperty(getProxyKey() + ".path"); 228 228 base_path = Utils.getConfig(getProxyKey() + ".path"); 229 229 } -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java
r1588 r1654 76 76 77 77 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"); 80 80 cachecounter = initCachecounter(); 81 81 -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/Termset.java
r1540 r1654 68 68 69 69 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")); 71 71 72 72 // Utils.load2(Utils.getConfig().getProperty("service.list.file")); -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/model/WorkspaceProfile.java
r1621 r1654 256 256 257 257 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; 259 259 File file=new File(path); 260 260 InputStream in = new BufferedInputStream( new FileInputStream(path));; … … 308 308 309 309 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; 311 311 File file=new File(path); 312 312 InputStream in = new BufferedInputStream( new FileInputStream(path));; -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/BasicProxy.java
r1629 r1654 100 100 101 101 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"); 103 104 //String uri = Termset.getTermsetAttr(getSourceAction().getActionkey(), "url"); 104 105 return uri; -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SMCProxy.java
r1621 r1654 72 72 */ 73 73 public String getBaseURI() { 74 //String uri =Utils.getConfig ().getProperty(getSourceAction().getActionkey() + ".uri");74 //String uri =Utils.getConfig).getProperty(getSourceAction().getActionkey() + ".uri"); 75 75 //String uri = Termset.getTermsetAttr(getSourceAction().getActionkey(), "url"); 76 76 return "http://localhost:8080/MDService2/smc/"; -
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/proxy/SRUProxy.java
r1630 r1654 52 52 public String getBaseURI() { 53 53 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"); 55 55 return uri; 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.