Class DocumentProvider
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.AbstractEntityProvider<org.w3c.dom.Document>
-
- org.jboss.resteasy.plugins.providers.DocumentProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.w3c.dom.Document>
,javax.ws.rs.ext.MessageBodyWriter<org.w3c.dom.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<org.w3c.dom.Document>
Provider that reads and writes org.w3c.dom.Document- Version:
- $Revision: $
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
disableDTDs
private javax.xml.parsers.DocumentBuilderFactory
documentBuilder
private boolean
enableSecureProcessingFeature
private boolean
expandEntityReferences
private javax.xml.transform.TransformerFactory
transformerFactory
-
Constructor Summary
Constructors Constructor Description DocumentProvider(ResteasyConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
org.w3c.dom.Document
readFrom(java.lang.Class<org.w3c.dom.Document> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.InputStream input)
void
writeTo(org.w3c.dom.Document document, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.OutputStream output)
-
Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider
getSize
-
-
-
-
Field Detail
-
transformerFactory
private final javax.xml.transform.TransformerFactory transformerFactory
-
documentBuilder
private final javax.xml.parsers.DocumentBuilderFactory documentBuilder
-
expandEntityReferences
private boolean expandEntityReferences
-
enableSecureProcessingFeature
private boolean enableSecureProcessingFeature
-
disableDTDs
private boolean disableDTDs
-
-
Constructor Detail
-
DocumentProvider
public DocumentProvider(@Context ResteasyConfiguration config)
-
-
Method Detail
-
isReadable
public boolean isReadable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
-
readFrom
public org.w3c.dom.Document readFrom(java.lang.Class<org.w3c.dom.Document> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.InputStream input) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
-
writeTo
public void writeTo(org.w3c.dom.Document document, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.OutputStream output) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
-