org.glassfish.jersey.message.internal
Class SourceProvider.DomSourceReader

java.lang.Object
  extended by org.glassfish.jersey.message.internal.SourceProvider.DomSourceReader
All Implemented Interfaces:
MessageBodyReader<javax.xml.transform.dom.DOMSource>
Enclosing class:
SourceProvider

public static final class SourceProvider.DomSourceReader
extends java.lang.Object
implements MessageBodyReader<javax.xml.transform.dom.DOMSource>

Provider for marshalling/un-marshalling DOMSource instances.


Constructor Summary
SourceProvider.DomSourceReader(org.glassfish.hk2.Factory<javax.xml.parsers.DocumentBuilderFactory> dbf)
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, MediaType mediaType)
           
 javax.xml.transform.dom.DOMSource readFrom(java.lang.Class<javax.xml.transform.dom.DOMSource> t, java.lang.reflect.Type gt, java.lang.annotation.Annotation[] as, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceProvider.DomSourceReader

public SourceProvider.DomSourceReader(@Context
                                      org.glassfish.hk2.Factory<javax.xml.parsers.DocumentBuilderFactory> dbf)
Method Detail

isReadable

public boolean isReadable(java.lang.Class<?> t,
                          java.lang.reflect.Type gt,
                          java.lang.annotation.Annotation[] as,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<javax.xml.transform.dom.DOMSource>

readFrom

public javax.xml.transform.dom.DOMSource readFrom(java.lang.Class<javax.xml.transform.dom.DOMSource> t,
                                                  java.lang.reflect.Type gt,
                                                  java.lang.annotation.Annotation[] as,
                                                  MediaType mediaType,
                                                  MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                                  java.io.InputStream entityStream)
                                           throws java.io.IOException
Specified by:
readFrom in interface MessageBodyReader<javax.xml.transform.dom.DOMSource>
Throws:
java.io.IOException


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