org.mycore.services.oai
Class MCROAIProvider
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.services.oai.MCROAIProvider
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCROAIProvider
- extends MCRServlet
This class implements an OAI Data Provider for MyCoRe and Miless
- Version:
- $Revision$ $Date$
- Author:
- Werner Gre�hoff, Heiko Helmbrecht
- 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 |
MCROAIProvider
public MCROAIProvider()
destroy
public void destroy()
- Method destroy. Automatically destroys the Servlet.
- Specified by:
destroy in interface Servlet- Overrides:
destroy in class GenericServlet
doGetPost
protected void doGetPost(MCRServletJob job)
throws JDOMException
- The method replace the default from MCRServlet
- Overrides:
doGetPost in class MCRServlet
- Parameters:
MCRServlet - job
- Throws:
JDOMException
ServletException
IOException
processRequest
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws JDOMException
- Method processRequest. Processes requests for both HTTP
GET and POST methods.
- Parameters:
request - servlet requestresponse - servlet response
- Throws:
JDOMException
ServletException
IOException
getServletInfo
public String getServletInfo()
- Method getServletInfo. Returns a short description of the servlet.
- Specified by:
getServletInfo in interface Servlet- Overrides:
getServletInfo in class GenericServlet
- Returns:
- String
getConfigBean
static MCROAIConfigBean getConfigBean(String instance)
getMaximalHitsize
static int getMaximalHitsize()
getHeader
public static String[] getHeader(MCRObject object,
String objectId,
String repositoryId,
String instance)
- Method getHeader. Gets the header information from the MCRObject object .
- Parameters:
object - The MCRObjectobjectId - The objectId as String representationrepositoryId - The repository id
- Returns:
- String[] Array of three Strings: the identifier, a datestamp (modification date) and a string with a blank separated list of categories the
element is classified in