org.mycore.frontend.servlets
Class MCRStaticXMLFileServlet

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.MCRStaticXMLFileServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class MCRStaticXMLFileServlet
extends MCRServlet

This servlet displays static *.xml files stored in the web application by sending them to MCRLayoutService.

Version:
$Revision: 15270 $ $Date: 2009-05-25 17:27:57 +0200 (Mon, 25 May 2009) $
Author:
Frank Lützenkirchen
See Also:
Serialized Form

Field Summary
protected static String docTypesIncludingEditors
           
protected static HashMap<String,String> docTypesMap
           
protected static Logger LOGGER
           
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRStaticXMLFileServlet()
           
 
Method Summary
 void doGetPost(MCRServletJob job)
          This method should be overwritten by other servlets.
(package private) static void processFile(HttpServletRequest request, HttpServletResponse response, File file)
           
 
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

LOGGER

protected static final Logger LOGGER

docTypesIncludingEditors

protected static final String docTypesIncludingEditors

docTypesMap

protected static final HashMap<String,String> docTypesMap
Constructor Detail

MCRStaticXMLFileServlet

public MCRStaticXMLFileServlet()
Method Detail

doGetPost

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

processFile

static void processFile(HttpServletRequest request,
                        HttpServletResponse response,
                        File file)
                 throws FileNotFoundException,
                        IOException,
                        MalformedURLException
Throws:
FileNotFoundException
IOException
MalformedURLException