All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xbib.oai.server.verb.Identify Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
package org.xbib.oai.server.verb;

import org.xbib.oai.exceptions.OAIException;
import org.xbib.oai.server.OAIServer;
import org.xbib.oai.server.identify.IdentifyServerRequest;
import org.xbib.oai.server.identify.IdentifyServerResponse;

/**
 *
 */
public class Identify extends AbstractVerb {
    
    public Identify(IdentifyServerRequest request, IdentifyServerResponse response) {
        super(request, response);
    }

    @Override
    public void execute(OAIServer adapter) throws OAIException {
        try {
            beginDocument();
            beginOAIPMH(adapter.getBaseURL());            
            beginElement("Identify");
            endElement("Identify");
            endOAIPMH();
            endDocument();
        } catch (Exception e) {
            throw new OAIException(e.getMessage(), e);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy