org.mycore.frontend.indexbrowser.lucene
Class MCRIndexBrowserServlet

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

public class MCRIndexBrowserServlet
extends MCRServlet

Servlet to create an xml document which is parsed by xsl to display the index browser results of the current request.

Author:
Anja Schaar, Andreas Trappe, Matthias Eichner
See Also:
Serialized Form

Field Summary
protected  MCRIndexBrowserConfig config
           
protected  MCRIndexBrowserIncomingData incomingBrowserData
           
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRIndexBrowserServlet()
           
 
Method Summary
protected  Document createEmptyDocument()
          Creates an empty xml index browser document.
protected  Document createResultListDocument()
          Creates a xml document with the results of the index browser.
protected  void doGetPost(MCRServletJob job)
          This method should be overwritten by other servlets.
protected  MCRIndexBrowserIncomingData getIncomingBrowserData(HttpServletRequest request)
           
 
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

incomingBrowserData

protected MCRIndexBrowserIncomingData incomingBrowserData

config

protected MCRIndexBrowserConfig config
Constructor Detail

MCRIndexBrowserServlet

public MCRIndexBrowserServlet()
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

createResultListDocument

protected Document createResultListDocument()
Creates a xml document with the results of the index browser.

Returns:
a new xml document with the result list

createEmptyDocument

protected Document createEmptyDocument()
Creates an empty xml index browser document.

Returns:
a new empty document

getIncomingBrowserData

protected MCRIndexBrowserIncomingData getIncomingBrowserData(HttpServletRequest request)