org.glassfish.jersey.message.internal
Class DocumentProvider

java.lang.Object
  extended by org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider<org.w3c.dom.Document>
      extended by org.glassfish.jersey.message.internal.DocumentProvider
All Implemented Interfaces:
MessageBodyReader<org.w3c.dom.Document>, MessageBodyWriter<org.w3c.dom.Document>

public final class DocumentProvider
extends AbstractMessageReaderWriterProvider<org.w3c.dom.Document>

Provider for marshalling/un-marshalling XML document instances.

Author:
Paul Sandoz, Marek Potociar (marek.potociar at oracle.com)

Field Summary
 
Fields inherited from class org.glassfish.jersey.message.internal.AbstractMessageReaderWriterProvider
UTF8
 
Constructor Summary
DocumentProvider()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 org.w3c.dom.Document readFrom(java.lang.Class<org.w3c.dom.Document> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
           
 void writeTo(org.w3c.dom.Document t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
           
 
Methods inherited from class org.glassfish.jersey.message.internal.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()
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          MediaType mediaType)

readFrom

public org.w3c.dom.Document readFrom(java.lang.Class<org.w3c.dom.Document> type,
                                     java.lang.reflect.Type genericType,
                                     java.lang.annotation.Annotation[] annotations,
                                     MediaType mediaType,
                                     MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                     java.io.InputStream entityStream)
                              throws java.io.IOException
Throws:
java.io.IOException

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           MediaType mediaType)

writeTo

public void writeTo(org.w3c.dom.Document t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.