/** * */ package org.gcube.portlets.user.geoportaldataviewer; import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import org.gcube.portlets.user.geoportaldataviewer.server.GeoportalExporterActionServlet; /** * The Class GeoportalExporterActionServletTest. * * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it * * Apr 24, 2024 */ public class GeoportalExporterActionServletTest { /** * The main method. * * @param args the arguments */ public static void main(String[] args) { String url = "https://data.dev.d4science.org/geoportal/export/pdf/profiledConcessioni/661d2c6f8804530afb90b132"; String identity = "francesco.mangiacrapa"; String token = ""; System.out.println("Start"); InputStream response; try { response = GeoportalExporterActionServlet.performHttpRequestToSGService(url, identity, token); System.out.println(IOUtils.toString(response)); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("End"); } }