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