org.mycore.services.urn
Class MCRURNResolver
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.services.urn.MCRURNResolver
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRURNResolver
- extends MCRServlet
This servlet resolves a given URN (urn:nbn:de) from a HTTP request and
redirects the client to the document that is registered for this URN. The URN
can be either given as the query string or as the request path. If the URN is
assigned to a local document, the request is redirected to the frontpage that
displays the document's metadata, as specified by the configuration property
MCR.URN.Resolver.DocumentURL. If the URN is not local, the request is
redirected to another URN resolver, as specified by the configuration
property MCR.URN.Resolver.MasterURL.
- Version:
- $Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
- 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, initTrustedProxies, render, reportException, think |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
masterURL
protected String masterURL
documentURL
protected String documentURL
MCRURNResolver
public MCRURNResolver()
init
public void init()
throws ServletException
- Overrides:
init in class MCRServlet
- Throws:
ServletException
doGetPost
public 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