Package com.esri.gpt.catalog.harvest.protocols

Examples of com.esri.gpt.catalog.harvest.protocols.HarvestProtocolOai


public OaiQueryBuilderTest() {
}

@BeforeClass
public static void setUpClass() throws Exception {
  HarvestProtocolOai protocol = new HarvestProtocolOai();
  protocol.setPrefix("oai_dc");
  IterationContext context = new IterationContext() {
    public void onIterationException(Exception ex) {
    }
  };
  instance  = new OaiQueryBuilder(context, protocol, "http://alcme.oclc.org/oaicat/OAIHandler");
View Full Code Here


  @Override
  public IValidator create(HrRecord record) {
    if (record!=null && getProtocolClass().isInstance(record.getProtocol())) {
      String url = record.getHostUrl();
      HarvestProtocolOai protocol = (HarvestProtocolOai) record.getProtocol();
      return new OAIValidator(url, protocol);
    }
    return null;
  }
View Full Code Here

    return ProtocolType.OAI.name();
  }

  @Override
  public Protocol newProtocol() {
    return new HarvestProtocolOai();
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.catalog.harvest.protocols.HarvestProtocolOai

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.