export_to_pdf #8

Merged
francesco.mangiacrapa merged 84 commits from export_to_pdf into master 2024-06-28 15:17:39 +02:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 069b631bc8 - Show all commits

View File

@ -105,7 +105,7 @@ public class GeoportalExporter {
if (userAgentName != null) { if (userAgentName != null) {
LOG.info("Serving request as User-Agent {}", userAgentName); LOG.info("Serving request as User-Agent {}", userAgentName);
String pollingCode = ucdID+"_"+projectID+"_"+System.currentTimeMillis(); String pollingCode = ucdID+"_"+projectID+"_"+System.currentTimeMillis();
String viewPdfURL = req.getServletContext()+"/view/"+pollingCode; String viewPdfURL = req.getServletPath()+"/view/"+pollingCode;
String entity = entityHTMLMessage("Exporting as PDF...", "The project with " + projectID, true, viewPdfURL); String entity = entityHTMLMessage("Exporting as PDF...", "The project with " + projectID, true, viewPdfURL);
return Response.ok(entity).encoding("UTF-8").header(ConstantsResolver.CONTENT_TYPE, "text/html") return Response.ok(entity).encoding("UTF-8").header(ConstantsResolver.CONTENT_TYPE, "text/html")
.build(); .build();
@ -251,8 +251,6 @@ public class GeoportalExporter {
LOG.info(this.getClass().getSimpleName() + " viewPDF - GET starts..."); LOG.info(this.getClass().getSimpleName() + " viewPDF - GET starts...");
LOG.debug("param is: pdfCode: {}", pdfCode); LOG.debug("param is: pdfCode: {}", pdfCode);
checkPathParameterNotNull(req, EXPORT_TYPE, pdfCode);
try { try {