2006/unicorn/org/w3c/unicorn/util ClientHttpRequest.java,1.7,1.8

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

Modified Files:
	ClientHttpRequest.java 
Log Message:
test


Index: ClientHttpRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/util/ClientHttpRequest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ClientHttpRequest.java	24 Sep 2008 13:41:54 -0000	1.7
+++ ClientHttpRequest.java	24 Sep 2008 13:47:02 -0000	1.8
@@ -107,8 +107,11 @@
 	 * @throws IOException
 	 */
 	private void boundary () throws IOException {
+    System.out.println("boundary() " + this.aURLConnection.getRequestMethod());
 		this.write("--");
+    System.out.println("boundary() " + this.aURLConnection.getRequestMethod());
 		this.write(this.sBoundary);
+    System.out.println("boundary() " + this.aURLConnection.getRequestMethod());
 	}
 
 	/**
@@ -197,7 +200,9 @@
 	 */
 	public void setLang (final String sLang) {
 		ClientHttpRequest.logger.debug("setLang("+sLang+")");
+    System.out.println("setLang() " + this.aURLConnection.getRequestMethod());
 		this.aURLConnection.setRequestProperty("Accept-Language", sLang);
+    System.out.println("setLang() " + this.aURLConnection.getRequestMethod());
 	}
 
 	/**
@@ -226,11 +231,17 @@
 			ClientHttpRequest.logger.debug("Name : " + sName + ".");
 			ClientHttpRequest.logger.debug("Value : " + sValue + ".");
 		}
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 		this.boundary();
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 		this.writeName(sName);
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 		this.newline();
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 		this.newline();
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 		this.writeln(sValue);
+    System.out.println("setParameter() " + this.aURLConnection.getRequestMethod());
 	}
 
 	/**
@@ -272,19 +283,33 @@
 			ClientHttpRequest.logger.debug("File name : " + sFileName + ".");
 			ClientHttpRequest.logger.debug("InputStream : " + aInputStream + ".");
 		}
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.boundary();
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.writeName(sName);
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.write("; filename=\"");
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.write(sFileName);
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.write('"');
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.newline();
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.write("Content-Type: ");
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		String sType = URLConnection.guessContentTypeFromName(sFileName);
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		if (sType == null) sType = "application/octet-stream";
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.writeln(sType);
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.newline();
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		ClientHttpRequest.pipe(aInputStream, this.aOutputStream);
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 		this.newline();
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 	}
 
 	/**
@@ -296,7 +321,9 @@
 	public void setParameter (
 			final String sName,
 			final File aFile) throws IOException {
+    System.out.println("setParameter3() " + this.aURLConnection.getRequestMethod());
 		this.setParameter(sName, aFile.getPath(), new FileInputStream(aFile));
+    System.out.println("setParameter2() " + this.aURLConnection.getRequestMethod());
 	}
 
 	/**
@@ -347,10 +374,12 @@
 	 * @throws IOException
 	 */
 	public InputStream post () throws IOException {
+    System.out.println("post() " + this.aURLConnection.getRequestMethod());
 		this.boundary();
 		this.writeln("--");
+    System.out.println("post() " + this.aURLConnection.getRequestMethod());
 		this.aOutputStream.close();
-    System.out.println(this.aURLConnection.getRequestMethod());
+    System.out.println("post() " + this.aURLConnection.getRequestMethod());
 
 		return this.aURLConnection.getInputStream();
 	}

Received on Wednesday, 24 September 2008 13:47:40 UTC