com.sun.jersey.core.impl.provider.entity
Class DocumentProvider

java.lang.Object
  extended by com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider<Document>
      extended by com.sun.jersey.core.impl.provider.entity.DocumentProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Document>, javax.ws.rs.ext.MessageBodyWriter<Document>

public final class DocumentProvider
extends AbstractMessageReaderWriterProvider<Document>

Author:
Paul.Sandoz@Sun.Com

Field Summary
 
Fields inherited from class com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider
UTF8
 
Constructor Summary
DocumentProvider(Injectable<DocumentBuilderFactory> dbf, Injectable<TransformerFactory> tf)
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 Document readFrom(Class<Document> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 void writeTo(Document t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentProvider

public DocumentProvider(@Context
                        Injectable<DocumentBuilderFactory> dbf,
                        @Context
                        Injectable<TransformerFactory> tf)
Method Detail

isReadable

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

readFrom

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

isWriteable

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

writeTo

public void writeTo(Document t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException
Throws:
IOException


Copyright © 2011 Oracle Corporation. All Rights Reserved.