Package org.fao.oaipmh.responses

Examples of org.fao.oaipmh.responses.IdentifyResponse


  //---
  //---------------------------------------------------------------------------

  public AbstractResponse execute(AbstractRequest request, ServiceContext context) throws Exception
  {
    IdentifyResponse res = new IdentifyResponse();
    SettingInfo      si  = context.getBean(SettingInfo.class);

    String baseUrl = si.getSiteUrl() + context.getBaseUrl() +"/"+ Jeeves.Prefix.SERVICE +"/en/"+ context.getService();

    res.setRepositoryName(si.getSiteName());
    res.setBaseUrl(baseUrl);
    res.setEarliestDateStamp(getEarliestDS(context));
    res.setDeletedRecord(DeletedRecord.NO);
    res.setGranularity(Granularity.LONG);
    res.addAdminEmail(si.getFeedbackEmail());

    return res;
  }
View Full Code Here


  public IdentifyResponse execute() throws   IOException, OaiPmhException, JDOMException,
                              SAXException, Exception
  {
    Map<String, String> params = new HashMap<String, String>();

    return new IdentifyResponse(sendRequest(params));
  }
View Full Code Here

TOP

Related Classes of org.fao.oaipmh.responses.IdentifyResponse

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.