Class MCRExportServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.export.MCRExportServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCRExportServlet extends MCRServlet
Provides functionality to export content. The content to export can be selected by specifying one or more URIs to read from, or by giving the ID of a basket to export. The selected content is collected as MCRExportCollection thats root element name can be specified. The content is then transformed using an MCRContentTransformer instance and forwarded to the requesting client. Request Parameters: uri=... can be repeated to include content from one or more URIs to read XML from basket=... the ID of a basket to read XML from root=... optional, name of the root element that wraps the selected content ns=... optional, URI of the namespace of the root element transformer=... the ID of the transformer to use to export the selected content.
Author:
Frank Lützenkirchen
See Also:
  • Constructor Details

    • MCRExportServlet

      public MCRExportServlet()
  • Method Details

    • doGetPost

      public void doGetPost(MCRServletJob job) throws Exception
      Description copied from class: MCRServlet
      This method should be overwritten by other servlets. As a default response we indicate the HTTP 1.1 status code 501 (Not Implemented).
      Overrides:
      doGetPost in class MCRServlet
      Throws:
      Exception