org.mycore.frontend.editor
Class MCREditorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.editor.MCREditorServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, MCRSessionListener
public class MCREditorServlet
- extends MCRServlet
- implements MCRSessionListener
This servlet handles form submissions from MyCoRe XML Editor pages and
converts the submitted data into a JDOM XML document for further processing.
It can also handle file uploads.
- Version:
- $Revision: 14910 $ $Date: 2009-03-16 20:20:01 +0100 (Mon, 16 Mar 2009) $
- Author:
- Frank L�tzenkirchen
- See Also:
- 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 |
logger
protected static final Logger logger
MCREditorServlet
public MCREditorServlet()
init
public void init()
throws ServletException
- Overrides:
init in class MCRServlet
- Throws:
ServletException
destroy
public void destroy()
- Specified by:
destroy in interface Servlet- Overrides:
destroy in class GenericServlet
getEditorSessionCache
static MCRCache getEditorSessionCache()
- For each user session, the state of all editor forms most recently used
is kept in a cache. The number of editor form data that is kept is controlled
by the property MCR.EditorFramework.MaxEditorsInSession.
sessionEvent
public void sessionEvent(MCRSessionEvent event)
- Specified by:
sessionEvent in interface MCRSessionListener
doGetPost
public void doGetPost(MCRServletJob job)
throws ServletException,
IOException
- 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:
ServletException
IOException
replaceEditorElements
public static void replaceEditorElements(HttpServletRequest request,
String uri,
Document xml)
- Replaces editor elements in static webpage with complete editor
definition.
- Parameters:
request - the current MCRServletJoburi - the uri of the static XML file containing the editorxml - the complete XML document of the static webpage