1. tbrugz
  2. queryon

Commits

tbrugz  committed 26f03a8

cleanup & small changes

  • Participants
  • Parent commits d5943cd
  • Branches default

Comments (0)

Files changed (5)

File src/tbrugz/queryon/BadRequestException.java

View file
 import javax.servlet.http.HttpServletResponse;
 
 public class BadRequestException extends RuntimeException {
-
+	private static final long serialVersionUID = 1L;
+	
 	final int code;
 	
 	public BadRequestException(String message) {

File src/tbrugz/queryon/Cool303RedirectionServlet.java

View file
  * TODO: init params: add current-server, current-port and/or current-context to path
  */
 public class Cool303RedirectionServlet extends HttpServlet {
-	
+	private static final long serialVersionUID = 1L;
+
 	static final Log log = LogFactory.getLog(Cool303RedirectionServlet.class);
 	
 	public static String PARAM_URL_PREPEND = "url-prepend"; 

File src/tbrugz/queryon/RequestSpec.java

View file
 			params.add(value);
 		}
 		
+		@SuppressWarnings("unchecked")
 		Map<String,String[]> params = req.getParameterMap();
+		
 		for(String param: params.keySet()) {
 			if(param.startsWith("fe:")) {
 				String col = param.substring(3);

File src_test/tbrugz/queryon/http/WinstoneAndH2HttpRequestTest.java

View file
 import org.apache.commons.csv.CSVRecord;
 import org.apache.http.HttpEntity;
 import org.apache.http.HttpResponse;
-import org.apache.http.NameValuePair;
-import org.apache.http.client.entity.UrlEncodedFormEntity;
 import org.apache.http.client.methods.HttpDelete;
 import org.apache.http.client.methods.HttpGet;
 import org.apache.http.client.methods.HttpPost;
-import org.apache.http.client.methods.HttpPut;
 import org.apache.http.impl.client.DefaultHttpClient;
-import org.apache.http.message.BasicNameValuePair;
 import org.apache.http.util.EntityUtils;
 import org.json.simple.JSONArray;
 import org.json.simple.JSONObject;

File src_test/tbrugz/queryon/r2rml/sqldump.properties

View file
 
 # 'true' to generate unique keys
 sqldump.usedbspecificfeatures=true
+sqldump.schemadump.quoteallsqlidentifiers=true
 
 sqldump.rdf.base=http://foo.example/DB/