Package org.glassfish.json.jaxrs
Class JsonValueBodyReader
- java.lang.Object
-
- org.glassfish.json.jaxrs.JsonValueBodyReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>
@Provider @Consumes({"application/json","text/json","*/*"}) public class JsonValueBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>Jakarta RESTful Web Services MessageBodyReader for JsonValue. This allows JsonValue to be a parameter of a resource method.- Author:
- Jitendra Kotamraju, Blaise Doughan, Michal Gajdos
-
-
Constructor Summary
Constructors Constructor Description JsonValueBodyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)javax.json.JsonValuereadFrom(Class<javax.json.JsonValue> jsonValueClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>
-
readFrom
public javax.json.JsonValue readFrom(Class<javax.json.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<javax.json.JsonValue>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-