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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisReadable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) readFrom(Class<Document> clazz, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, InputStream input) voidwriteTo(Document document, Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> headers, OutputStream output) Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvidergetSizeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriterasyncWriteToMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWritergetSize
- 
Constructor Details- 
DocumentProviderpublic DocumentProvider()
- 
DocumentProvider
 
- 
- 
Method Details- 
isReadablepublic boolean isReadable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- isReadablein interface- jakarta.ws.rs.ext.MessageBodyReader<Document>
 
- 
readFrompublic 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:
- readFromin interface- jakarta.ws.rs.ext.MessageBodyReader<Document>
- Throws:
- IOException
- jakarta.ws.rs.WebApplicationException
 
- 
isWriteablepublic boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
- isWriteablein interface- jakarta.ws.rs.ext.MessageBodyWriter<Document>
 
- 
writeTopublic 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:
- writeToin interface- jakarta.ws.rs.ext.MessageBodyWriter<Document>
- Throws:
- IOException
- jakarta.ws.rs.WebApplicationException
 
 
-