- java.lang.Object
-
- org.glassfish.json.jaxrs.JsonValueBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonValue>
@Provider @Consumes({"application/json","text/json","*/*"}) public class JsonValueBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.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, jakarta.ws.rs.core.MediaType mediaType)jakarta.json.JsonValuereadFrom(Class<jakarta.json.JsonValue> jsonValueClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonValue>
-
readFrom
public jakarta.json.JsonValue readFrom(Class<jakarta.json.JsonValue> jsonValueClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonValue>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
-