shuber 2005/04/26 16:30:39 CEST
Modified files: (Branch: JAHIA-4-1-BRANCH)
src/java/org/jahia/params ParamBean.java
Log:
New mechanism for template parameter to be able to specify the mime type to
use by using an extension. For example :
/template/simple.xml will actually dispatch to
simple.jsp
but the content type will be resolved according to what is set in the MIME
type of the web.xml file.
Revision Changes Path
1.149.2.9.2.8 +9 -0 jahia/src/java/org/jahia/params/ParamBean.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/src/java/org/jahia/params/ParamBean.java.diff?r1=1.149.2.9.2.7&r2=1.149.2.9.2.8&f=h
Index: ParamBean.java
===================================================================
RCS file:
/home/cvs/repository/jahia/src/java/org/jahia/params/Attic/ParamBean.java,v
retrieving revision 1.149.2.9.2.7
retrieving revision 1.149.2.9.2.8
diff -u -r1.149.2.9.2.7 -r1.149.2.9.2.8
--- ParamBean.java 1 Apr 2005 15:22:21 -0000 1.149.2.9.2.7
+++ ParamBean.java 26 Apr 2005 14:30:38 -0000 1.149.2.9.2.8
@@ -290,6 +290,7 @@
private ArrayList pageURLKeys = new ArrayList();
private long delayFromNow=-1;
+ private String responseMimeType = "text/html";
static {
/** @todo we might want to put this in a configuration file so the
@@ -2902,6 +2903,10 @@
return null;
}
+ public String getResponseMimeType () {
+ return responseMimeType;
+ }
+
/**
* Sets the current page's cache expiration date.
* @param cacheExpirationDate a date which is the expiration date at
which
@@ -3503,6 +3508,10 @@
this.theUser = theUser;
}
+ public void setResponseMimeType (String responseMimeType) {
+ this.responseMimeType = responseMimeType;
+ }
+
/**
* Returns true if str passed is a reserved keyword.
* Added by Intellogix