Package org.fao.geonet.services.resources.handlers

Examples of org.fao.geonet.services.resources.handlers.IResourceDownloadHandler


    if (elMd == null)
      throw new MetadataNotFoundEx("Metadata not found - deleted?");

        //--- manage the download hook
        IResourceDownloadHandler downloadHook = (IResourceDownloadHandler) context.getApplicationContext().getBean("resourceDownloadHandler");
        Element response = downloadHook.onDownloadMultiple(context, params, Integer.parseInt(id), files);

        // Return null to do the default processing. TODO: Check to move the code to the default hook.
        if (response != null) {
            return response;
View Full Code Here


          }
        }
      }
    }

        IResourceDownloadHandler downloadHook = (IResourceDownloadHandler) context.getApplicationContext().getBean("resourceDownloadHandler");
        return downloadHook.onDownload(context, params, Integer.parseInt(id), fname, file);
  }
View Full Code Here

TOP

Related Classes of org.fao.geonet.services.resources.handlers.IResourceDownloadHandler

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.