ref 11719: Add management of VREs to the NLPHub interface
https://support.d4science.org/issues/11719 Fixed some issue on webapp: Errors of shared variables on servlets Added slf4j over the whole application and logs in nlphub.log Problem of checking nulls on arrays in Javascript Added the ability to retrieve the context and token from the RequestUri git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/nlphub@167441 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
08439833e0
commit
ed5b9111ea
|
@ -14,12 +14,12 @@ import javax.servlet.http.HttpServlet;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.JsonManager;
|
||||
import org.gcube.data.analysis.nlphub.legacy.NlpHubException;
|
||||
import org.gcube.data.analysis.nlphub.mapper.DefaultMapper;
|
||||
import org.gcube.data.analysis.nlphub.mapper.JsonMapper;
|
||||
import org.gcube.data.analysis.nlphub.session.SessionUtils;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.gcube.data.analysis.nlphub.workspace.WorkspaceManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -14,12 +14,12 @@ import javax.servlet.http.HttpServletRequest;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.Part;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.JsonManager;
|
||||
import org.gcube.data.analysis.nlphub.legacy.NlpHubException;
|
||||
import org.gcube.data.analysis.nlphub.nlp.NLpLanguageRecognizer;
|
||||
import org.gcube.data.analysis.nlphub.nlp.NlpUtils;
|
||||
import org.gcube.data.analysis.nlphub.session.SessionUtils;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.gcube.data.analysis.nlphub.workspace.WorkspaceManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
|
|
@ -9,9 +9,9 @@ import java.net.URLEncoder;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.JsonManager;
|
||||
import org.gcube.data.analysis.nlphub.legacy.NlpHubException;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.w3c.dom.Document;
|
||||
|
|
|
@ -12,8 +12,8 @@ import java.util.ArrayList;
|
|||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.AsyncHttpRequest;
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.NerOutput;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.w3c.dom.Document;
|
||||
|
|
|
@ -5,8 +5,8 @@ import java.util.ArrayList;
|
|||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.JsonManager;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.gcube.data.analysis.nlphub.session;
|
|||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
|
||||
public class SessionUtils {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.gcube.data.analysis.nlphub.legacy;
|
||||
package org.gcube.data.analysis.nlphub.shared;
|
||||
|
||||
public class Constants {
|
||||
public static final boolean DEBUG = false;
|
|
@ -10,8 +10,8 @@ import java.net.HttpURLConnection;
|
|||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
import org.gcube.data.analysis.nlphub.legacy.Constants;
|
||||
import org.gcube.data.analysis.nlphub.legacy.NlpHubException;
|
||||
import org.gcube.data.analysis.nlphub.shared.Constants;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
|
Loading…
Reference in New Issue