File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
rdf4j/src/main/java/com/inrupt/client/rdf4j Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 4141 */
4242public final class RDF4JBodyHandlers {
4343
44- private static Boolean isSuccess (final Response .ResponseInfo responseInfo ) {
45- return responseInfo .statusCode () < 300 ;
46- }
47-
4844 private static Model responseToModel (final Response .ResponseInfo responseInfo ) {
4945 return responseInfo .headers ().firstValue ("Content-Type" )
5046 .map (RDF4JBodyHandlers ::toRDF4JFormat ).map (format -> {
@@ -76,7 +72,7 @@ public static Response.BodyHandler<Model> ofModel() {
7672 public static Response .BodyHandler <Model > ofRDF4JModel () {
7773 return Response .BodyHandlers .throwOnError (
7874 RDF4JBodyHandlers ::responseToModel ,
79- RDF4JBodyHandlers :: isSuccess
75+ ( r ) -> Response . isSuccess ( r . statusCode ())
8076 );
8177 }
8278
@@ -114,7 +110,7 @@ public static Response.BodyHandler<Repository> ofRepository() {
114110 public static Response .BodyHandler <Repository > ofRDF4JRepository () {
115111 return Response .BodyHandlers .throwOnError (
116112 RDF4JBodyHandlers ::responseToRepository ,
117- RDF4JBodyHandlers :: isSuccess
113+ ( r ) -> Response . isSuccess ( r . statusCode ())
118114 );
119115 }
120116
You can’t perform that action at this time.
0 commit comments