org.mycore.frontend.servlets
Class MCRClassificationBrowser

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

public class MCRClassificationBrowser
extends MCRServlet

This servlet provides a way to visually navigate through the tree of categories of a classification, provides a link to show the documents in a category and shows to number of documents per category.

Author:
Anja Schaar
See Also:
MCRClassificationBrowserData, Serialized Form

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRClassificationBrowser()
           
 
Method Summary
 void doGetPost(MCRServletJob job)
          This method should be overwritten by other servlets.
protected  void doLayout(MCRServletJob job, String styleBase, Document jdomDoc)
          Gather information about the XML document to be shown and the corresponding XSLT stylesheet and redirect the request to the LayoutService
 
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
 

Constructor Detail

MCRClassificationBrowser

public MCRClassificationBrowser()
Method Detail

doGetPost

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

doLayout

protected void doLayout(MCRServletJob job,
                        String styleBase,
                        Document jdomDoc)
                 throws Exception
Gather information about the XML document to be shown and the corresponding XSLT stylesheet and redirect the request to the LayoutService

Parameters:
job - The MCRServletJob instance
styleBase - String value to select the correct XSL stylesheet
jdomDoc - The XML representation to be presented by the LayoutService
Throws:
ServletException - for errors from the servlet engine.
Exception