Package org.mycore.datamodel.ifs
Class MCRFileNodeServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRContentServlet
org.mycore.datamodel.ifs.MCRFileNodeServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
This servlet delivers the contents of an MCRFilesystemNode to the client
browser. If the node is a ordinary MCRFile, the contents of that file will be
sent to the browser. If the node is an MCRFile with a MCRAudioVideoExtender,
the message that starts the associated streaming player will be delivered. If
the node is a MCRDirectory, the contents of that directory will be forwareded
to MCRLayoutService as XML data to display a detailed directory listing.
- Version:
- $Revision$ $Date$
- Author:
- Frank Lützenkirchen, Jens Kupferschmidt, Thomas Scheffler (yagee), A.Schaar, Robert Stephan
- 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 TypeMethodDescriptiongetContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns MCRContent matching current request.static String
getOwnerID
(jakarta.servlet.http.HttpServletRequest request) retrieves the derivate ID of the owning derivate from request path.protected String
getPath
(jakarta.servlet.http.HttpServletRequest request) Retrieves the path of the file to display from request path.Methods inherited from class org.mycore.frontend.servlets.MCRContentServlet
doHead, doOptions, getConfig, init, render
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doGetPost, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, initializeMCRSession, reportException, think, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MCRFileNodeServlet
public MCRFileNodeServlet()
-
-
Method Details
-
getContent
public MCRContent getContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException Description copied from class:MCRContentServlet
Returns MCRContent matching current request.- Specified by:
getContent
in classMCRContentServlet
- Throws:
IOException
-
getOwnerID
retrieves the derivate ID of the owning derivate from request path. Attention: derivateID is not always at the first position in path- Parameters:
request
- - the http request object
-
getPath
Retrieves the path of the file to display from request path.- Parameters:
request
- - the http request object
-