W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 08 Sep 2009 14:24:24 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Ml1cO-0004iE-Rw@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT