/** * Return an InputStream to an HTML representation of the contents * of this directory. * * @param contextPath Context path to which our internal paths are * relative */ protected InputStream renderHtml (String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { return renderHtml(contextPath, cacheEntry, resources); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, WebResource resource) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(resource); if (xsltInputStream==null) { return renderHtml(contextPath, resource); } return renderXml(contextPath, resource, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { Source xsltSource = findXsltInputStream(cacheEntry.context); if (xsltSource == null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltSource); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } return renderXml(contextPath, cacheEntry, xsltInputStream); }
/** * Decide which way to render. HTML or XML. */ protected InputStream render (String contextPath, CacheEntry cacheEntry) { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } else { return renderXml(contextPath, cacheEntry, xsltInputStream); } }
/** * Decide which way to render. HTML or XML. */ protected InputStream render(String contextPath, CacheEntry cacheEntry) throws IOException, ServletException { InputStream xsltInputStream = findXsltInputStream(cacheEntry.context); if (xsltInputStream==null) { return renderHtml(contextPath, cacheEntry); } else { return renderXml(contextPath, cacheEntry, xsltInputStream); } }
/** * Decide which way to render. HTML or XML. * * @param contextPath The path * @param resource The resource * @param encoding The encoding to use to process the readme (if any) * * @return the input stream with the rendered output * * @throws IOException an IO error occurred * @throws ServletException rendering error */ protected InputStream render(String contextPath, WebResource resource, String encoding) throws IOException, ServletException { Source xsltSource = findXsltSource(resource); if (xsltSource == null) { return renderHtml(contextPath, resource, encoding); } return renderXml(contextPath, resource, xsltSource, encoding); }
/** * Decide which way to render. HTML or XML. * * @param contextPath The path * @param resource The resource * @param encoding The encoding to use to process the readme (if any) * * @return the input stream with the rendered output * * @throws IOException an IO error occurred * @throws ServletException rendering error */ protected InputStream render(String contextPath, WebResource resource, String encoding) throws IOException, ServletException { Source xsltSource = findXsltSource(resource); if (xsltSource == null) { return renderHtml(contextPath, resource, encoding); } return renderXml(contextPath, resource, xsltSource, encoding); }
private InputStream render(String contextPath, CacheEntry cacheEntry, ProxyDirContext proxyDirContext) throws IOException, ServletException { Source xsltSource = findXsltInputStream(cacheEntry.context); if (xsltSource == null) { return renderHtml(contextPath, cacheEntry, proxyDirContext); } else { return renderXml(contextPath, cacheEntry, xsltSource, proxyDirContext); } }
} catch (Exception e) { log("directory transform failure: " + e.getMessage()); return renderHtml(contextPath, cacheEntry);
} catch (Exception e) { log("directory transform failure: " + e.getMessage()); return renderHtml(contextPath, cacheEntry); } finally { if (Globals.IS_SECURITY_ENABLED) {