protected void doPost()

in src/main/java/org/apache/sling/tooling/support/install/impl/InstallServlet.java [76:92]


    protected void doPost(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
        final String dirPath = req.getParameter(DIR);
        final boolean refreshPackages = Boolean.parseBoolean(req.getParameter(dirPath));
        try {
            if (dirPath == null) {
                logger.error("No mandatory dir parameter specified");
                resp.setStatus(500);
                InstallationResult result = new InstallationResult(false, "No mandatory dir parameter specified");
                result.render(resp.getWriter());
                return;
            }
            installBundleFromDirectory(resp, Paths.get(dirPath), refreshPackages);
        } catch (IOException e) {
            throw new ServletException(e);
        }
    }