RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.plugins.providers
Class DocumentProvider

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

@Provider
public class DocumentProvider
extends AbstractEntityProvider<Document>

Provider that reads and writes org.w3c.dom.Document

Version:
$Revision: $
Author:
Constructor Summary
DocumentProvider(ResteasyConfiguration config)
           
 
Method Summary
 boolean isReadable(Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
           
 Document readFrom(Class<Document> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream input)
           
 void writeTo(Document document, Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType, javax.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
 

Constructor Detail

DocumentProvider

public DocumentProvider(@Context
                        ResteasyConfiguration config)
Method Detail

isReadable

public boolean isReadable(Class<?> clazz,
                          Type type,
                          Annotation[] annotation,
                          javax.ws.rs.core.MediaType mediaType)

readFrom

public Document readFrom(Class<Document> clazz,
                         Type type,
                         Annotation[] annotations,
                         javax.ws.rs.core.MediaType mediaType,
                         javax.ws.rs.core.MultivaluedMap<String,String> headers,
                         InputStream input)
                  throws IOException,
                         javax.ws.rs.WebApplicationException
Throws:
IOException
javax.ws.rs.WebApplicationException

isWriteable

public boolean isWriteable(Class<?> clazz,
                           Type type,
                           Annotation[] annotation,
                           javax.ws.rs.core.MediaType mediaType)

writeTo

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

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.