@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String path = req.getPathInfo(); if (path != null) { AssetServer server = (AssetServer)getServletContext().getAttribute("asset.server"); if (server != null) { if (!server.doGet(path, getServletContext(), req, resp)) { resp.sendError(404, "No resource found " + path); } } else { resp.sendError(500, "No asset server"); } } } }
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String path = req.getPathInfo(); if (path != null) { AssetServer server = (AssetServer)getServletContext().getAttribute("asset.server"); if (server != null) { if (!server.doGet(path, getServletContext(), req, resp)) { resp.sendError(404, "No resource found " + path); } } else { resp.sendError(500, "No asset server"); } } } }