org.mycore.frontend.servlets
Class MCRLinkServlet

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

public class MCRLinkServlet
extends MCRServlet

This servlet return the corresponding link value (from / to) for the requested link value (from / to) of the MCRLinkTablemanager data. The return is a simplified mcr:results JDOM tree.

Author:
Jens Kupferschmidt
See Also:
MCRServlet, Serialized Form

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRLinkServlet()
           
 
Method Summary
 void doGetPost(MCRServletJob job)
          The method replace the default form MCRServlet and redirect the MCRLayoutService.
 void init()
          The initalization of the servlet.
protected  void sendToLayout(HttpServletRequest req, HttpServletResponse res, Document jdom)
          Forwards the document to the output
 
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, 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

MCRLinkServlet

public MCRLinkServlet()
Method Detail

init

public void init()
          throws ServletException
The initalization of the servlet.

Overrides:
init in class MCRServlet
Throws:
ServletException
See Also:
GenericServlet.init()

doGetPost

public void doGetPost(MCRServletJob job)
               throws Exception
The method replace the default form MCRServlet and redirect the MCRLayoutService. Parameters are:

sendToLayout

protected void sendToLayout(HttpServletRequest req,
                            HttpServletResponse res,
                            Document jdom)
                     throws IOException
Forwards the document to the output

Throws:
IOException
See Also:
overwritten in jspdocportal