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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(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) 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) Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider
getSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriter
asyncWriteTo
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
DocumentProvider
public DocumentProvider() -
DocumentProvider
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<Document>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-