Package org.fao.oaipmh.requests

Examples of org.fao.oaipmh.requests.TokenListRequest


      ServiceContext context) throws Exception {

        if(Log.isDebugEnabled(Geonet.OAI_HARVESTER))
            Log.debug(Geonet.OAI_HARVESTER,"OAI " +this.getClass().getSimpleName()+ " execute: ");
   
    TokenListRequest  req = (TokenListRequestrequest;

    //UserSession  session = context.getUserSession();
    SearchResult result;

    //String token = req.getResumptionToken();
    String strToken = req.getResumptionToken();
    GeonetworkResumptionToken token = null;
   

   
    int pos = 0;

    if ( strToken == null )
    {
            if(Log.isDebugEnabled(Geonet.OAI_HARVESTER))
                Log.debug(Geonet.OAI_HARVESTER,"OAI " +this.getClass().getSimpleName()+ " : new request (no resumptionToken)");
      Element params = new Element("request");

      ISODate from   = req.getFrom();
      ISODate until  = req.getUntil();
      String  set    = req.getSet();
      String  prefix = req.getMetadataPrefix();

      if (from != null)
      {
        String sFrom = from.isDateOnly() ? from.getDateAsString() : from.toString();
        params.addContent(new Element(getDateFrom()).setText(sFrom));
View Full Code Here

TOP

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

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.