You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/08/24 20:43:34 UTC
svn commit: r1377034 -
/jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java
Author: andy
Date: Fri Aug 24 18:43:33 2012
New Revision: 1377034
URL: http://svn.apache.org/viewvc?rev=1377034&view=rev
Log:
Remove dev code.
Modified:
jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java
Modified: jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java?rev=1377034&r1=1377033&r2=1377034&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/openjena/riot/web/HttpOp.java Fri Aug 24 18:43:33 2012
@@ -292,39 +292,4 @@ public class HttpOp
}
} finally { closeEntity(response.getEntity()) ; }
}
-
-// public static void main2(String...argv) throws Exception
-// {
-// String queryString = "SELECT * { ?s ?p ?o } LIMIT 1" ;
-// // HttpClient 4.1.2
-// URI uri = URIUtils.createURI("http",
-// "sparql.org",
-// -1,
-// "books",
-// "query="+URLEncoder.encode(queryString,"UTF-8"),
-// null
-// ) ;
-// HttpGet httpget = new HttpGet(uri);
-// httpget.addHeader("Accept", "application/sparql-results+json") ;
-//
-// System.out.println(httpget.getURI());
-//
-// DefaultHttpClient httpclient = new DefaultHttpClient();
-//
-// HttpContext localContext = new BasicHttpContext();
-//
-// HttpResponse response = httpclient.execute(httpget, localContext) ;
-// System.out.println(response.getFirstHeader("Content-type")) ;
-//
-// System.out.println(response.getStatusLine()) ;
-// HttpEntity entity = response.getEntity();
-// InputStream instream = entity.getContent() ;
-// try {
-// //entity = new BufferedHttpEntity(entity) ;
-// String x = FileUtils.readWholeFileAsUTF8(instream) ;
-// System.out.print(x) ;
-// } finally {
-// instream.close();
-// }
-// }
}