org.mycore.services.oai
Class MCROAIProvider

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.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

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCROAIProvider()
           
 
Method Summary
 void destroy()
          Method destroy.
protected  void doGetPost(MCRServletJob job)
          The method replace the default from MCRServlet
(package private) static MCROAIConfigBean getConfigBean(String instance)
           
static String[] getHeader(MCRObject object, String objectId, String repositoryId, String instance)
          Method getHeader.
(package private) static int getMaximalHitsize()
           
 String getServletInfo()
          Method getServletInfo.
protected  void processRequest(HttpServletRequest request, HttpServletResponse response)
          Method processRequest.
 
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
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCROAIProvider

public MCROAIProvider()
Method Detail

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 request
response - 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 MCRObject
objectId - The objectId as String representation
repositoryId - 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