Package org.mycore.frontend.export
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
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:
-
Field Summary
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
ATTR_MYCORE_SESSION, CURRENT_THREAD_NAME_KEY, INITIAL_SERVLET_NAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, init, initializeMCRSession, render, reportException, think, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MCRExportServlet
public MCRExportServlet()
-
-
Method Details
-
doGetPost
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 classMCRServlet
- Throws:
Exception
-