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

2006/unicorn/src/org/w3c/unicorn/request UploadRequest.java,1.8,1.9 URIRequest.java,1.16,1.17 DirectRequestGET.java,1.9,1.10 DirectRequestPOST.java,1.8,1.9

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 23 Oct 2009 13:24:43 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1N1K8J-00063o-EQ@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/request
In directory hutz:/tmp/cvs-serv23234/src/org/w3c/unicorn/request

Modified Files:
	UploadRequest.java URIRequest.java DirectRequestGET.java 
	DirectRequestPOST.java 
Log Message:
changed constructor of Response implementation to (InputStream is, String charset, String observerId)


Index: DirectRequestPOST.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/request/DirectRequestPOST.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- DirectRequestPOST.java	19 Oct 2009 10:09:03 -0000	1.8
+++ DirectRequestPOST.java	23 Oct 2009 13:24:41 -0000	1.9
@@ -79,7 +79,7 @@
 			request.setParameters(mapOfParameter);
 			
 			// TODO How to find the response content encoding here ?
-			return ResponseFactory.getResponse(request.post(), responseType, sURL.toString(), null);
+			return ResponseFactory.getResponse(request.post(), responseType, sURL.toString(), null, observerId);
 			
 		} catch (IOException e) {
 			throw new UnicornException(new Message(e));

Index: DirectRequestGET.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/request/DirectRequestGET.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- DirectRequestGET.java	19 Oct 2009 10:09:03 -0000	1.9
+++ DirectRequestGET.java	23 Oct 2009 13:24:41 -0000	1.10
@@ -94,7 +94,7 @@
 			URLConnection aURLConnection = aURL.openConnection();
 			aURLConnection.setRequestProperty("Accept-Language", this.sLang);
 			
-			return ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, sURL.toString(), aURLConnection.getContentEncoding());
+			return ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, sURL.toString(), aURLConnection.getContentEncoding(), observerId);
 			
 		} catch (IOException e) {
 			throw new UnicornException(new Message(e));

Index: UploadRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/request/UploadRequest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- UploadRequest.java	19 Oct 2009 10:09:03 -0000	1.8
+++ UploadRequest.java	23 Oct 2009 13:24:41 -0000	1.9
@@ -109,7 +109,7 @@
 			}
 			
 			// TODO How to find the response content encoding here ?
-			return ResponseFactory.getResponse(aClientHttpRequest.post(), responseType, sURL.toString(), null);
+			return ResponseFactory.getResponse(aClientHttpRequest.post(), responseType, sURL.toString(), null, observerId);
 
 		} catch (MalformedURLException e) {
 			throw new UnicornException(new Message(e));

Index: URIRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/request/URIRequest.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- URIRequest.java	22 Oct 2009 17:03:09 -0000	1.16
+++ URIRequest.java	23 Oct 2009 13:24:41 -0000	1.17
@@ -137,8 +137,8 @@
 				throw new UnicornException(Message.ERROR, "$message_observer_internal_error", null, observerName);
 			}
 			
-			return ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, aURL.toString(), aURLConnection.getContentEncoding());
-			
+			return ResponseFactory.getResponse(aURLConnection.getInputStream(), responseType, aURL.toString(), aURLConnection.getContentEncoding(), observerId);
+		
 		} catch (MalformedURLException e) {
 			throw new UnicornException(new Message(e));
 		} catch (ConnectException e) {
Received on Friday, 23 October 2009 13:24:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC