Package org.fao.oaipmh.requests

Examples of org.fao.oaipmh.requests.ListSetsRequest


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

  public AbstractResponse execute(AbstractRequest request, ServiceContext context) throws Exception
  {
    ListSetsRequest  req = (ListSetsRequest) request;
    ListSetsResponse res = new ListSetsResponse();

    //--- we don't provide streaming for sets

    if (req.getResumptionToken() != null)
      throw new BadResumptionTokenException(req.getResumptionToken());

        final List<MetadataCategory> metadataCategories = context.getBean(MetadataCategoryRepository.class).findAll();

    for (MetadataCategory rec : metadataCategories)
    {
View Full Code Here


  {
    Element root = new Element("sets");

    try
    {
      ListSetsRequest req = new ListSetsRequest(context.getBean(GeonetHttpRequestFactory.class));
      req.setSchemaPath(oaiSchema);
            XmlRequest t = req.getTransport();
      t.setUrl(new URL(url));
      Lib.net.setupProxy(context, t);
      ListSetsResponse res = req.execute();

      //--- build response

      while (res.hasNext())
      {
View Full Code Here

TOP

Related Classes of org.fao.oaipmh.requests.ListSetsRequest

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.