org.mycore.frontend.servlets
Class MCRObjectServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRObjectServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRObjectServlet
- extends MCRServlet
This servlet response the MCRObject certain by the call path
.../receive/MCRObjectID or
.../servlets/MCRObjectServlet/id=MCRObjectID[&XSL.Style=...].
- Author:
- Jens Kupferschmidt, Anja Schaar, Thomas Scheffler (yagee)
- See Also:
MCRServlet,
Serialized Form
| Methods inherited from class org.mycore.frontend.servlets.MCRServlet |
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, initTrustedProxies, render, reportException, think |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRObjectServlet
public MCRObjectServlet()
init
public void init()
throws ServletException
- The initalization of the servlet.
- Overrides:
init in class MCRServlet
- Throws:
ServletException- See Also:
GenericServlet.init()
doGetPost
public void doGetPost(MCRServletJob job)
throws Exception
- The method replace the default form MCRServlet and redirect the
MCRLayoutService.
- Overrides:
doGetPost in class MCRServlet
- Parameters:
job - the MCRServletJob instance
- Throws:
Exception
getEditorIDFromSearch
protected static final String getEditorIDFromSearch(String referer)
getEditorIDFromObjectID
protected final String getEditorIDFromObjectID(HttpServletRequest request,
String referer)
resolveEditorID
protected static final String resolveEditorID(String objectID)
storeEditorID
protected static final void storeEditorID(String objectID,
String editorID)