Class JsonStructureProvider

java.lang.Object
org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
org.jboss.resteasy.plugins.providers.jsonp.JsonStructureProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>, jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>, AsyncBufferedMessageBodyWriter<jakarta.json.JsonStructure>, AsyncMessageBodyWriter<jakarta.json.JsonStructure>

@Consumes({"application/json","application/*+json","text/json"}) @Produces({"application/json","application/*+json","text/json"}) public class JsonStructureProvider extends AbstractJsonpProvider implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>, AsyncBufferedMessageBodyWriter<jakarta.json.JsonStructure>
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • JsonStructureProvider

      public JsonStructureProvider()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
    • readFrom

      public jakarta.json.JsonStructure readFrom(Class<jakarta.json.JsonStructure> 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 interface jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
      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 interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
    • getSize

      public long getSize(jakarta.json.JsonStructure jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
    • writeTo

      public void writeTo(jakarta.json.JsonStructure jsonStructure, 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 interface jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException