99499599699799899910001001100210031004
{ log.warn("IOException during http request", e); } catch (JMException e) { log.warn("JMException during http request", e); } catch (RuntimeException rte) { log.error("RuntimeException during http request", rte); }
10251026102710281029103010311032103310341035
httpOut.flush(); } } catch (IOException e) { log.warn("Exception during request processing", e); } finally { try {
154155156157158159160161162163164
log.error("Transformation exception ", e); } } else { log.warn("Transformer for path " + path + " not found"); } } protected Transformer createTransformer(String path) {
271272273274275276277278279280281
String name = file.getName(); int extensionIndex = name.lastIndexOf('.'); String mime = null; if (extensionIndex < 0) { log.warn("Filename has no extensions " + file.toString()); mime = "text/plain"; } else { String extension = name.substring(extensionIndex, name.length());
283284285286287288289290291292293
{ mime = (String)mimeTypes.get(extension); } else { log.warn("MIME type not found " + extension); mime = "text/plain"; } } try {
308309310311312313314315316317318
outArray.writeTo(out); fileIn.close(); } catch (Exception e) { log.warn("Exception loading file " + file, e); throw new HttpException(HttpConstants.STATUS_NOT_FOUND, "file " + file + " not found"); } return null; }
382383384385386387388389390391392
Logger log = getLogger(); File target = new File(file); if (!target.exists()) { log.warn("Target file " + file + " does not exist, defaulting to previous"); return; } if (target.isDirectory()) { useJar = false;
405406407408409410411412413414415
this.root = target; useJar = true; } catch (MalformedURLException e) { log.warn("Unable to create class loader", e); } } else { log.warn("Target file " + file + " does not exist, defaulting to previous");
410411412413414415416417418419420
log.warn("Unable to create class loader", e); } } else { log.warn("Target file " + file + " does not exist, defaulting to previous"); } } } public String getFile()