org.mycore.frontend.servlets
Class MCRStaticXMLFileServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
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
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
docTypesIncludingEditors
protected static final String docTypesIncludingEditors
docTypesMap
protected static final HashMap<String,String> docTypesMap
MCRStaticXMLFileServlet
public MCRStaticXMLFileServlet()
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