Changeset 890 for MDService2/trunk/MDService2/src/eu/clarin
- Timestamp:
- 11/12/10 21:58:33 (14 years ago)
- Location:
- MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Cache.java
r870 r890 67 67 cacheindex_path = cachepath + Admin.getConfig().getProperty("cacheindex.file"); 68 68 cachecounter = initCachecounter(); 69 69 70 } 70 71 … … 74 75 } 75 76 return singleton; 77 } 78 79 public String getCacheIndexPath() { 80 return getCache().cacheindex_path; 81 76 82 } 77 83 -
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java
r879 r890 56 56 private int maxdepth; 57 57 private String format; 58 private String actionContentType; 58 59 private String userMsg; 59 60 private int repository=1; … … 132 133 this.format = format; 133 134 } 134 135 136 public String getActionContentType() { 137 if (format.toLowerCase().equals("xml")) { 138 this.actionContentType = "text/xml"; 139 } else { 140 this.actionContentType = "text/html"; 141 } 142 143 return actionContentType; 144 } 145 146 public void setActionContentType(String actionContentType) { 147 this.actionContentType = actionContentType; 148 } 149 150 135 151 public void setRepository(int repository) { 136 152 this.repository = repository; … … 149 165 actionkey = actionKey; 150 166 } 167 151 168 152 169 public String getStartRecord() { -
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/MDRepoProxyAction.java
r860 r890 41 41 42 42 private String proxy_key = "mdrepository"; 43 private String actionContentType;44 43 45 46 public String getActionContentType() {47 return actionContentType;48 }49 50 public void setActionContentType(String actionContentType) {51 this.actionContentType = actionContentType;52 }53 44 54 45 @Override … … 62 53 @Override 63 54 public void setFormat(String format) { 64 super.setFormat(format); 65 if (format.toLowerCase().equals("xml")) { 66 this.actionContentType = "text/xml"; 67 } else { 68 this.actionContentType = "text/html"; 69 } 70 55 super.setFormat(format); 71 56 } 72 57 @Override
Note: See TracChangeset
for help on using the changeset viewer.