@Consumes(value={"application/json","application/*+json","text/json"}) @Produces(value={"application/json","application/*+json","text/json"}) public class JsonArrayProvider extends AbstractJsonpProvider implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>, AsyncBufferedMessageBodyWriter<javax.json.JsonArray>
Constructor and Description |
---|
JsonArrayProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(javax.json.JsonArray jsonValues,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
javax.json.JsonArray |
readFrom(Class<javax.json.JsonArray> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(javax.json.JsonArray jsonValues,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
findReader, findWriter, getCharset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncWriteTo
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>
public javax.json.JsonArray readFrom(Class<javax.json.JsonArray> 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
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>
IOException
javax.ws.rs.WebApplicationException
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
public long getSize(javax.json.JsonArray jsonValues, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
public void writeTo(javax.json.JsonArray jsonValues, 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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2021 JBoss by Red Hat. All rights reserved.