2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.9,1.10

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

Modified Files:
	UnicornCall.java 
Log Message:
added shortcut function addParameter(String, String)

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- UnicornCall.java	4 Sep 2009 15:35:15 -0000	1.9
+++ UnicornCall.java	8 Sep 2009 14:24:22 -0000	1.10
@@ -116,16 +116,10 @@
 	 */
 	public void doTask() throws Exception {
 		UnicornCall.logger.trace("doTask.");
-		if (UnicornCall.logger.isDebugEnabled()) {
-			UnicornCall.logger.debug("String task id : " + this.aTask.getID()
-					+ ".");
-			UnicornCall.logger.debug("EnumInputMethod : "
-					+ this.aEnumInputMethod + ".");
-			UnicornCall.logger.debug("Document name : " + this.sDocumentName
-					+ ".");
-			UnicornCall.logger.debug("Map of string parameter : "
-					+ this.mapOfStringParameter + ".");
-		}
+		UnicornCall.logger.debug("String task id : " + aTask.getID() + ".");
+		UnicornCall.logger.debug("EnumInputMethod : " + aEnumInputMethod + ".");
+		UnicornCall.logger.debug("Document name : " + sDocumentName + ".");
+		UnicornCall.logger.debug("Map of string parameter : " + mapOfStringParameter + ".");
 
 		// find mimetype of the document
 		MimeType aMimeType = this.getMimeType();
@@ -667,6 +661,13 @@
 			this.mapOfStringParameter.put(sName, tStringValue);
 		}
 	}
+	
+	public void addParameter(final String sName, final String tStringValue) {
+
+		String[] tab = {tStringValue};
+		addParameter(sName, tab);
+		
+	}
 
 	/**
 	 * Set the map of String Parameter

Received on Tuesday, 8 September 2009 14:24:37 UTC