Class JsonValueProvider
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
-
- org.jboss.resteasy.plugins.providers.jsonp.JsonValueProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>,javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>,AsyncBufferedMessageBodyWriter<javax.json.JsonValue>,AsyncMessageBodyWriter<javax.json.JsonValue>
@Consumes({"application/json","application/*+json","text/json"}) @Produces({"application/json","application/*+json","text/json"}) public class JsonValueProvider extends AbstractJsonpProvider implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>, AsyncBufferedMessageBodyWriter<javax.json.JsonValue>- Author:
- Jim Ma
-
-
Constructor Summary
Constructors Constructor Description JsonValueProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(javax.json.JsonValue jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)javax.json.JsonValuereadFrom(Class<javax.json.JsonValue> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(javax.json.JsonValue jsonValue, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)-
Methods inherited from class org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
findReader, findWriter, getCharset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriter
asyncWriteTo
-
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, 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> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonValue>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>
-
getSize
public long getSize(javax.json.JsonValue jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>
-
writeTo
public void writeTo(javax.json.JsonValue jsonValue, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonValue>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
-