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-widgetx@142046 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b9643ab54e
commit
147f59a863
|
@ -720,7 +720,9 @@ public class TabularDataXGridPanel extends ContentPanel {
|
||||||
reader = new DataRowPagingReader(tableDefinition);
|
reader = new DataRowPagingReader(tableDefinition);
|
||||||
|
|
||||||
String path = GWT.getModuleBaseURL()
|
String path = GWT.getModuleBaseURL()
|
||||||
+ Constants.TABULAR_DATA_X_SERVLET;
|
+ Constants.TABULAR_DATA_X_SERVLET + "?"
|
||||||
|
+ Constants.CURR_GROUP_ID + "="
|
||||||
|
+ GCubeClientContext.getCurrentContextId();
|
||||||
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
|
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
|
||||||
path);
|
path);
|
||||||
builder.setHeader(ServletParameters.TD_SESSION_ID,
|
builder.setHeader(ServletParameters.TD_SESSION_ID,
|
||||||
|
|
|
@ -4,6 +4,7 @@ import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.ServletInputStream;
|
import javax.servlet.ServletInputStream;
|
||||||
|
@ -51,7 +52,12 @@ public class TabularDataXServlet extends HttpServlet {
|
||||||
protected void handleRequest(HttpServletRequest request,
|
protected void handleRequest(HttpServletRequest request,
|
||||||
HttpServletResponse response) throws ServletException, IOException {
|
HttpServletResponse response) throws ServletException, IOException {
|
||||||
logger.debug("TabularDataServlet handleRequest");
|
logger.debug("TabularDataServlet handleRequest");
|
||||||
|
logger.debug("Request Headers: ");
|
||||||
|
Enumeration<String> headers=request.getHeaderNames();
|
||||||
|
while(headers.hasMoreElements()){
|
||||||
|
String hName=headers.nextElement();
|
||||||
|
logger.debug("Header: "+hName+" = "+request.getHeader(hName));
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue