jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [03/24] jena git commit: Correct accept content negotiations headers.
Date Tue, 27 Feb 2018 23:10:23 GMT
Correct accept content negotiations headers.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/0a73699a
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/0a73699a
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/0a73699a

Branch: refs/heads/master
Commit: 0a73699a8c9146b6c163b09abe8b9ee1ece2a766
Parents: da71d0f
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Feb 20 13:54:43 2018 +0000
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Feb 20 13:54:43 2018 +0000

----------------------------------------------------------------------
 jena-arq/src/main/java/org/apache/jena/riot/WebContent.java     | 1 +
 .../org/apache/jena/sparql/engine/http/QueryEngineHTTP.java     | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/0a73699a/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java b/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
index f265acc..344ce74 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/WebContent.java
@@ -123,6 +123,7 @@ public class WebContent
     public static final String      contentTypeJSON              = "application/json" ;
     public static final ContentType ctJSON                       = ContentType.create(contentTypeJSON)
;
     
+    // Unofficial
     public static final String      contentTypeResultsThrift     = "application/sparql-results+thrift"
;
     public static final ContentType ctResultsThrift              = ContentType.create(contentTypeResultsThrift)
;
     

http://git-wip-us.apache.org/repos/asf/jena/blob/0a73699a/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/QueryEngineHTTP.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/QueryEngineHTTP.java
b/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/QueryEngineHTTP.java
index d424b76..d793143 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/QueryEngineHTTP.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/QueryEngineHTTP.java
@@ -95,12 +95,13 @@ public class QueryEngineHTTP implements QueryExecution {
      * Supported content types for SELECT queries
      */
     public static String[] supportedSelectContentTypes = new String[] { WebContent.contentTypeResultsXML,
-            WebContent.contentTypeResultsJSON, WebContent.contentTypeTextTSV, WebContent.contentTypeTextCSV
};
+            WebContent.contentTypeResultsJSON, WebContent.contentTypeTextTSV, WebContent.contentTypeTextCSV,
+            WebContent.contentTypeResultsThrift};
     /**
      * Supported content types for ASK queries
      */
     public static String[] supportedAskContentTypes = new String[] { WebContent.contentTypeResultsXML,
-            WebContent.contentTypeJSON, WebContent.contentTypeTextTSV, WebContent.contentTypeTextCSV
};
+            WebContent.contentTypeResultsJSON, WebContent.contentTypeTextTSV, WebContent.contentTypeTextCSV
};
 
     // Releasing HTTP input streams is important. We remember this for SELECT,
     // and will close when the engine is closed


Mime
View raw message