Class JsonObjectProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
org.jboss.resteasy.plugins.providers.jsonp.JsonObjectProvider
- All Implemented Interfaces:
- jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonObject>,- jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonObject>,- AsyncBufferedMessageBodyWriter<jakarta.json.JsonObject>,- AsyncMessageBodyWriter<jakarta.json.JsonObject>
@Consumes({"application/json","application/*+json","text/json"})
@Produces({"application/json","application/*+json","text/json"})
public class JsonObjectProvider
extends AbstractJsonpProvider
implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonObject>, AsyncBufferedMessageBodyWriter<jakarta.json.JsonObject>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlonggetSize(jakarta.json.JsonObject jsonObject, 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.JsonObjectreadFrom(Class<jakarta.json.JsonObject> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) voidwriteTo(jakarta.json.JsonObject jsonObject, 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.AbstractJsonpProviderfindReader, findWriter, getCharsetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriterasyncWriteTo
- 
Constructor Details- 
JsonObjectProviderpublic JsonObjectProvider()
 
- 
- 
Method Details- 
isReadablepublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- isReadablein interface- jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonObject>
 
- 
readFrompublic jakarta.json.JsonObject readFrom(Class<jakarta.json.JsonObject> 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 interface- jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonObject>
- Throws:
- IOException
- jakarta.ws.rs.WebApplicationException
 
- 
isWriteablepublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- isWriteablein interface- jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonObject>
 
- 
getSizepublic long getSize(jakarta.json.JsonObject jsonObject, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- getSizein interface- jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonObject>
 
- 
writeTopublic void writeTo(jakarta.json.JsonObject jsonObject, 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 interface- jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonObject>
- Throws:
- IOException
- jakarta.ws.rs.WebApplicationException
 
 
-