Class JsonArrayProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
org.jboss.resteasy.plugins.providers.jsonp.JsonArrayProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
,jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
,AsyncBufferedMessageBodyWriter<jakarta.json.JsonArray>
,AsyncMessageBodyWriter<jakarta.json.JsonArray>
@Consumes({"application/json","application/*+json","text/json"})
@Produces({"application/json","application/*+json","text/json"})
public class JsonArrayProvider
extends AbstractJsonpProvider
implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>, AsyncBufferedMessageBodyWriter<jakarta.json.JsonArray>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(jakarta.json.JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) jakarta.json.JsonArray
readFrom
(Class<jakarta.json.JsonArray> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(jakarta.json.JsonArray jsonValues, 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, 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
-
Constructor Details
-
JsonArrayProvider
public JsonArrayProvider()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
-
readFrom
public jakarta.json.JsonArray readFrom(Class<jakarta.json.JsonArray> 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:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
-
getSize
public long getSize(jakarta.json.JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
-
writeTo
public void writeTo(jakarta.json.JsonArray jsonValues, 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:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-