[Yanel-commits] rev 22749 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Sat Feb 17 21:14:28 CET 2007
Author: michi
Date: 2007-02-17 21:14:27 +0100 (Sat, 17 Feb 2007)
New Revision: 22749
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
get mime type fixed
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-17 20:14:01 UTC (rev 22748)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-17 20:14:27 UTC (rev 22749)
@@ -100,7 +100,7 @@
*/
public View getView(String viewId, String revisionName) throws Exception {
View defaultView = new View();
- String mimeType = getMimeType(getPath(), viewId);
+ String mimeType = getMimeType(viewId);
defaultView.setMimeType(mimeType);
String yanelPath = getResourceConfigProperty("yanel-path");
@@ -212,11 +212,11 @@
/**
* Get mime type
*/
- private String getMimeType(String path, String viewId) throws Exception {
+ public String getMimeType(String viewId) throws Exception {
String mimeType = getResourceConfigProperty("mime-type");
if (mimeType != null) return mimeType;
- String suffix = PathUtil.getSuffix(path);
+ String suffix = PathUtil.getSuffix(getPath());
if (suffix != null) {
log.debug("SUFFIX: " + suffix);
if (suffix.equals("html")) {
More information about the Yanel-commits
mailing list