- From: Damien Leroy via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 21 Sep 2006 16:01:27 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/util In directory hutz:/tmp/cvs-serv25605/org/w3c/unicorn/util Modified Files: ClientHttpRequest.java Log Message: Add use of http method information from the observer contrat to call the observer with method POST or GET. Index: ClientHttpRequest.java =================================================================== RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/util/ClientHttpRequest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ClientHttpRequest.java 31 Aug 2006 09:09:28 -0000 1.1.1.1 +++ ClientHttpRequest.java 21 Sep 2006 16:01:24 -0000 1.2 @@ -40,7 +40,7 @@ ClientHttpRequest.randomString(); private void connect () throws IOException { - ClientHttpRequest.logger.trace("connect"); + //ClientHttpRequest.logger.trace("connect"); if (null == this.aOutputStream) { this.aOutputStream = this.aURLConnection.getOutputStream(); } @@ -48,11 +48,13 @@ private void write (final char c) throws IOException { this.connect(); + ClientHttpRequest.logger.debug(c); this.aOutputStream.write(c); } protected void write (final String s) throws IOException { this.connect(); + ClientHttpRequest.logger.debug(s); this.aOutputStream.write(s.getBytes()); } @@ -89,7 +91,7 @@ this.aURLConnection.setDoOutput(true); this.aURLConnection.setRequestProperty( "Content-Type", - "multipart/form-data; boundary=" + sBoundary); + "multipart/form-data; boundary=" + this.sBoundary); } /** @@ -158,6 +160,7 @@ } public void setLang (final String sLang) { + ClientHttpRequest.logger.debug("setLang("+sLang+")"); this.aURLConnection.setRequestProperty("Accept-Language", sLang); }
Received on Thursday, 21 September 2006 16:01:39 UTC