export_to_pdf #8
|
@ -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 {
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue