Class DumpRestoreController

  • All Implemented Interfaces:
    MultipartRequestWrapper.ParsingStrategy, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet(name="DumpRestoreController",
                urlPatterns="/dumpRestore/*")
    public class DumpRestoreController
    extends FreemarkerHttpServlet
    Allow the user to dump the knowledge base from either RDFService, or restore it. Show the user the selection page. If they select "dump" parameters, redirect to an appropriate filename-based URL, so they will receive a nicely named file. If they chose to "restore", just do it. The first request, the selection and the redirected dump should all be GET requests. A restore should be a POST request.
    See Also:
    Serialized Form