Class DeleteServlet

  • All Implemented Interfaces:
    javax.servlet.Servlet, RepositoryServlet

    public class DeleteServlet
    extends TransformationServlet
    Servlet responsible for presenting the list of repositories, and deleting the chosen one.
    • Constructor Detail

      • DeleteServlet

        public DeleteServlet()
    • Method Detail

      • doPost

        protected void doPost​(WorkbenchRequest req,
                              javax.servlet.http.HttpServletResponse resp,
                              String xslPath)
                       throws Exception
        Deletes the repository with the given ID, then redirects to the repository selection page. If given a "checkSafe" parameter, instead returns JSON response with safe field set to true if safe, false if not.
        Overrides:
        doPost in class TransformationServlet
        Throws:
        Exception
      • service

        public void service​(TupleResultBuilder builder,
                            String xslPath)
                     throws org.eclipse.rdf4j.repository.RepositoryException,
                            org.eclipse.rdf4j.query.QueryResultHandlerException
        Presents a page where the user can choose a repository ID to delete.
        Overrides:
        service in class TransformationServlet
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException
        org.eclipse.rdf4j.query.QueryResultHandlerException