- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 23 Oct 2009 13:24:43 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response In directory hutz:/tmp/cvs-serv23234/src/org/w3c/unicorn/response Modified Files: ResponseFactory.java Log Message: changed constructor of Response implementation to (InputStream is, String charset, String observerId) Index: ResponseFactory.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/ResponseFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ResponseFactory.java 16 Oct 2009 16:25:00 -0000 1.1 +++ ResponseFactory.java 23 Oct 2009 13:24:41 -0000 1.2 @@ -16,17 +16,17 @@ private static final Log logger = LogFactory.getLog(ResponseFactory.class); - public static Response getResponse(InputStream is, String responseType, String requestUri, String charset) throws UnicornException { + public static Response getResponse(InputStream is, String responseType, String requestUri, String charset, String observerId) throws UnicornException { Response res; try { if (Framework.responseImpl.get(responseType) != null) { - res = Framework.responseImpl.get(responseType).getConstructor(InputStream.class, String.class).newInstance(is, charset); + res = Framework.responseImpl.get(responseType).getConstructor(InputStream.class, String.class, String.class).newInstance(is, charset, observerId); } else if (Framework.responseImpl.get("default") != null) { - res = Framework.responseImpl.get("default").getConstructor(InputStream.class, String.class).newInstance(is, charset); + res = Framework.responseImpl.get("default").getConstructor(InputStream.class, String.class, String.class).newInstance(is, charset, observerId); logger.warn("ResponseType unknown: " + responseType + ". The default responseType is instanciated instead."); } else { - res = new DefaultResponseXBeans(is, charset); + res = new DefaultResponseXBeans(is, charset, observerId); } res.setRequestUri(requestUri); return res;
Received on Friday, 23 October 2009 13:24:47 UTC