Class DocumentProvider

java.lang.Object
org.jboss.resteasy.plugins.providers.AbstractEntityProvider<Document>
org.jboss.resteasy.plugins.providers.DocumentProvider
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Document>, jakarta.ws.rs.ext.MessageBodyWriter<Document>, AsyncBufferedMessageBodyWriter<Document>, AsyncMessageBodyWriter<Document>

@Provider @Produces({"text/xml","text/*+xml","application/xml","application/*+xml"}) @Consumes({"text/xml","text/*+xml","application/xml","application/*+xml"}) public class DocumentProvider extends AbstractEntityProvider<Document> implements AsyncBufferedMessageBodyWriter<Document>
Provider that reads and writes org.w3c.dom.Document.
Version:
$Revision: $
Author:
Solomon Duskis
  • Constructor Details

    • DocumentProvider

      public DocumentProvider()
    • DocumentProvider

      public DocumentProvider(@Context ResteasyConfiguration config)
  • Method Details

    • isReadable

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

      public Document readFrom(Class<Document> clazz, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> headers, InputStream input) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Document>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • isWriteable

      public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Document>
    • writeTo

      public void writeTo(Document document, Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream output) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Document>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException