org.mycore.frontend.servlets
Class MCRObjectServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mycore.frontend.servlets.MCRServlet
              extended by 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

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRObjectServlet()
           
 
Method Summary
 void doGetPost(MCRServletJob job)
          The method replace the default form MCRServlet and redirect the MCRLayoutService.
protected  String getEditorIDFromObjectID(HttpServletRequest request, String referer)
           
protected static String getEditorIDFromSearch(String referer)
           
 void init()
          The initalization of the servlet.
protected static String resolveEditorID(String objectID)
           
protected static void storeEditorID(String objectID, String editorID)
           
 
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 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRObjectServlet

public MCRObjectServlet()
Method Detail

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)