/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package fedora.oai.sample;
import fedora.oai.OAIProviderServlet;
import fedora.oai.OAIResponder;
import fedora.oai.RepositoryException;
/**
* @author Chris Wilper
*/
public class SampleOAIProviderServlet
extends OAIProviderServlet {
private static final long serialVersionUID = 1L;
private OAIResponder m_responder;
@Override
public OAIResponder getResponder() throws RepositoryException {
if (m_responder == null) {
m_responder = new OAIResponder(new SampleOAIProvider());
}
return m_responder;
}
public static void main(String[] args) throws Exception {
new SampleOAIProviderServlet().test(args);
}
}