Class JsonValueBodyReader
java.lang.Object
org.glassfish.json.jaxrs.JsonValueBodyReader
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<JsonValue>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) readFrom(Class<JsonValue> jsonValueClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream inputStream) private static booleansupportsMediaType(javax.ws.rs.core.MediaType mediaType)
-
Field Details
-
rf
-
JSON
- See Also:
-
PLUS_JSON
- See Also:
-
-
Constructor Details
-
JsonValueBodyReader
public JsonValueBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<JsonValue>
-
supportsMediaType
private static boolean supportsMediaType(javax.ws.rs.core.MediaType mediaType) - Returns:
- true for all media types of the pattern */json and */*+json.
-
readFrom
public JsonValue readFrom(Class<JsonValue> jsonValueClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> stringStringMultivaluedMap, InputStream inputStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<JsonValue>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-