org.mycore.frontend.wcms
Class MCRWCMSServlet

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.wcms.MCRWCMSServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
MCRWCMSActionServlet, MCRWCMSAdminServlet, MCRWCMSChooseServlet, MCRWCMSFileUploadServlet, MCRWCMSGetStaticHTMLServlet, MCRWCMSLoginServlet

public abstract class MCRWCMSServlet
extends MCRServlet

Author:
Andreas Trappe, Thomas Scheffler Need to insert some things here
See Also:
Serialized Form

Field Summary
protected static String OUTPUT_ENCODING
           
protected static String VALIDATOR
           
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRWCMSServlet()
           
 
Method Summary
protected  boolean accessGeneral()
           
protected  void doGetPost(MCRServletJob job)
          This method should be overwritten by other servlets.
 Element getMultimediaConfig(Element root)
          Attaches on the given JDOM-Element an JDOM-Element with the configuration of available multimedia objects (images, misc.
 Element getTemplates()
           
protected abstract  void processRequest(HttpServletRequest request, HttpServletResponse response)
           
(package private)  Document XMLFile2JDOM(String pathOfFile)
           
 
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, init, 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
 

Field Detail

OUTPUT_ENCODING

protected static final String OUTPUT_ENCODING
See Also:
Constant Field Values

VALIDATOR

protected static final String VALIDATOR
See Also:
Constant Field Values
Constructor Detail

MCRWCMSServlet

public MCRWCMSServlet()
Method Detail

doGetPost

protected void doGetPost(MCRServletJob job)
                  throws Exception
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:
Exception

accessGeneral

protected final boolean accessGeneral()

getTemplates

public Element getTemplates()

XMLFile2JDOM

final Document XMLFile2JDOM(String pathOfFile)
                     throws IOException,
                            JDOMException
Throws:
IOException
JDOMException

processRequest

protected abstract void processRequest(HttpServletRequest request,
                                       HttpServletResponse response)
                                throws ServletException,
                                       IOException
Throws:
ServletException
IOException

getMultimediaConfig

public Element getMultimediaConfig(Element root)
Attaches on the given JDOM-Element an JDOM-Element with the configuration of available multimedia objects (images, misc. documents).

Parameters:
root -
Returns: