- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 13 Oct 2009 15:27:02 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv10481/src/org/w3c/unicorn
Modified Files:
RequestThread.java
Log Message:
cleaned
Index: RequestThread.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/RequestThread.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- RequestThread.java 13 Oct 2009 15:23:55 -0000 1.9
+++ RequestThread.java 13 Oct 2009 15:26:59 -0000 1.10
@@ -68,37 +68,6 @@
} catch (final Exception e) {
messages.add(new Message(e));
logger.error(e.getMessage(), e);
- /*try {
- StringBuilder builder = new StringBuilder();
- VelocityContext context = new VelocityContext(Framework.getLanguageContexts().get(lang));
- EventCartridge aEventCartridge = new EventCartridge();
- aEventCartridge.addEventHandler(new EscapeXMLEntities());
- aEventCartridge.attachToContext(context);
-
- if (e.getMessage() != null)
- context.put("exception", e.getMessage());
- else
- context.put("exception", "");
- ByteArrayOutputStream os = new ByteArrayOutputStream();
- OutputStreamWriter osw = new OutputStreamWriter(os);
- Templates.write("io_error.vm", context, osw);
- osw.close();
- InputStreamReader isr = new InputStreamReader(
- new ByteArrayInputStream(os.toByteArray()));
- char[] chararray = new char[8192];
- int readLength = 0;
- while ((readLength = isr.read(chararray, 0, 8192)) > -1) {
- builder.append(chararray, 0, readLength);
- }
- aResponse = ResponseParserFactory.parse(builder.toString(), "default");
- aResponse.setXml(builder);
- } catch (IOException e1) {
- logger.error("Exception : " + e1.getMessage(), e1);
- e1.printStackTrace();
- } catch (Exception e1) {
- logger.error("Exception : " + e1.getMessage(), e1);
- e1.printStackTrace();
- }*/
}
}
Received on Tuesday, 13 October 2009 15:27:03 UTC