2006/unicorn/org/w3c/unicorn UnicornCall.java,1.23,1.24

Update of /sources/public/2006/unicorn/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv28313/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
Modifying UNICORN_PARAMETER_PREFIX now works

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- UnicornCall.java	25 Sep 2008 17:37:43 -0000	1.23
+++ UnicornCall.java	28 Jul 2009 10:56:56 -0000	1.24
@@ -384,7 +384,7 @@
 			// lang of the observer (if it has one).
 			// ucn_lang is defined in forms of index templates
 			// (xx_index.html.vm)
-			String[] valOfUcnLang = this.mapOfStringParameter.get("ucn_lang");
+			String[] valOfUcnLang = this.mapOfStringParameter.get(Property.get("UNICORN_PARAMETER_PREFIX") + "lang");
 
 			// Get name of the lang parameter (defined in RDF file)
 			String observerParamLangName = aObserver.getParamLangName();
@@ -762,7 +762,7 @@
 			aMimeType = new MimeType(sMimeType);
 			break;
 		case DIRECT:
-			sMimeType = this.mapOfStringParameter.get("ucn_mime")[0];
+			sMimeType = this.mapOfStringParameter.get(Property.get("UNICORN_PARAMETER_PREFIX") + "mime")[0];
 			if (null == sMimeType || "".equals(sMimeType)) {
 				UnicornCall.logger
 						.error("No mimetype specified for direct input.");

Received on Tuesday, 28 July 2009 10:57:13 UTC