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 2013/01/03 18:04:55 UTC

svn commit: r1428480 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java

Author: andy
Date: Thu Jan  3 17:04:54 2013
New Revision: 1428480

URL: http://svn.apache.org/viewvc?rev=1428480&view=rev
Log:
Cautious - dataset operations not protected against long running operations.
Do dataset operations only if enabled by "uber" mode (one servlet that analyses 
incoming requests and dynamically chooses the operation).

Modified:
    jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java?rev=1428480&r1=1428479&r2=1428480&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java (original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/server/SPARQLServer.java Thu Jan  3 17:04:54 2013
@@ -215,7 +215,8 @@ public class SPARQLServer
     // The überservlet sits on the dataset name and handles all requests.
     // Includes direct naming and quad access to the dataset.
     public static boolean überServlet = false ;
-
+    private static List<String> ListOfEmptyString = Arrays.asList("") ;
+    
     private void configureOneDataset(ServletContextHandler context, DatasetRef sDesc, boolean enableCompression)
     {
         String datasetPath = sDesc.name ;
@@ -246,14 +247,14 @@ public class SPARQLServer
             addServlet(context, datasetPath, sparqlUpload,  sDesc.uploadEP,   false) ;    // No point - no results of any size.
             addServlet(context, datasetPath, sparqlHttpR,   sDesc.readGraphStoreEP,       enableCompression) ;
             addServlet(context, datasetPath, sparqlHttpRW,  sDesc.readWriteGraphStoreEP,  enableCompression) ;
-            List<String> x = Arrays.asList("") ;
-            addServlet(context, datasetPath, sparqlDataset, x, enableCompression) ;
+            // This adds direct operations on the dataset itself. 
+            //addServlet(context, datasetPath, sparqlDataset, ListOfEmptyString, enableCompression) ;
         }
         else
         {
             // This is the servlet that analyses requests and dispatches them to the appropriate servlet.
             //    SPARQL Query, SPARQL Update -- handles dataset?query=  dataset?update=
-            //    Graph Store Protocol (direct and indirect naming).
+            //    Graph Store Protocol (direct and indirect naming) if enabled.
             //    GET/PUT/POST on the dataset itself.
             // It also checks for a request that looks like a service request and passes it
             // on to the service (this takes precedence over direct naming).