Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit 5681e20

Browse files
committed
fix jersey integration
Signed-off-by: Lukas Jungmann <[email protected]>
1 parent 0bd3735 commit 5681e20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jaxrs/src/main/java/org/glassfish/json/jaxrs/JsonStructureBodyReader.java renamed to jaxrs/src/main/java/org/glassfish/json/jaxrs/JsonValueBodyReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
*/
6666
@Provider
6767
@Consumes({"application/json", "text/json", "*/*"})
68-
public class JsonStructureBodyReader implements MessageBodyReader<JsonValue> {
68+
public class JsonValueBodyReader implements MessageBodyReader<JsonValue> {
6969
private final JsonReaderFactory rf = Json.createReaderFactory(null);
7070

7171
private static final String JSON = "json";
@@ -91,7 +91,7 @@ public JsonValue readFrom(Class<JsonValue> jsonValueClass,
9191
MultivaluedMap<String, String> stringStringMultivaluedMap,
9292
InputStream inputStream) throws IOException, WebApplicationException {
9393
try (JsonReader reader = rf.createReader(inputStream)) {
94-
return reader.read();
94+
return reader.readValue();
9595
}
9696
}
9797
}

jaxrs/src/main/java/org/glassfish/json/jaxrs/JsonStructureBodyWriter.java renamed to jaxrs/src/main/java/org/glassfish/json/jaxrs/JsonValueBodyWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
*/
7272
@Provider
7373
@Produces({"application/json", "text/json", "*/*"})
74-
public class JsonStructureBodyWriter implements MessageBodyWriter<JsonValue> {
74+
public class JsonValueBodyWriter implements MessageBodyWriter<JsonValue> {
7575
private static final String JSON = "json";
7676
private static final String PLUS_JSON = "+json";
7777

0 commit comments

Comments
 (0)