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
Constructors -
Method Summary
Modifier 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 AbstractEntityProvider
getSizeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsyncBufferedMessageBodyWriter
asyncWriteToMethods 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:
isReadablein 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:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<Document>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein 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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Document>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-