protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html;charset=utf-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void doDirectory(HttpServletRequest request,HttpServletResponse response, Resource resource) throws IOException { if (_directory) { String listing = resource.getListHTML(request.getRequestURI(),request.getPathInfo().lastIndexOf("/") > 0); response.setContentType("text/html; charset=UTF-8"); response.getWriter().println(listing); } else response.sendError(HttpStatus.FORBIDDEN_403); }
protected void sendDirectory(HttpServletRequest request, HttpServletResponse response, Resource resource, String pathInContext) throws IOException { if (!_dirAllowed) { response.sendError(HttpServletResponse.SC_FORBIDDEN); return; } byte[] data=null; String base = URIUtil.addEncodedPaths(request.getRequestURI(),URIUtil.SLASH); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null) { response.sendError(HttpServletResponse.SC_FORBIDDEN, "No directory"); return; } data=dir.getBytes("utf-8"); response.setContentType("text/html;charset=utf-8"); response.setContentLength(data.length); response.getOutputStream().write(data); }
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)
resource=_contextHandler.getBaseResource().addPath(pathInContext); String dir = resource.getListHTML(base,pathInContext.length()>1); if (dir==null)