From ec047f37c11f6764094d9f3b16785790126bf9bf Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 2 Feb 2017 11:29:30 +0000 Subject: [PATCH] refs 5870: TDM - adding new functionalities to portlets Task-Url: https://support.d4science.org/issues/5870 Updated to support SDMX Dataset export git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@142062 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../td/gwtservice/server/CSVImportFileServlet.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java index 49844ac..b138767 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/CSVImportFileServlet.java @@ -7,6 +7,7 @@ import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.IOException; import java.nio.charset.Charset; +import java.util.Enumeration; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; @@ -54,7 +55,14 @@ public class CSVImportFileServlet extends HttpServlet { logger.info("CSVImportFileServlet"); long startTime = System.currentTimeMillis(); - + logger.debug("Request Headers: "); + Enumeration headers=request.getHeaderNames(); + while(headers.hasMoreElements()){ + String hName=headers.nextElement(); + logger.debug("Header: "+hName+" = "+request.getHeader(hName)); + } + + HttpSession session = request.getSession(); if (session == null) {