org.glassfish.jersey.message.internal
Class SourceProvider.DomSourceReader
java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.DomSourceReader
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<DOMSource>
- Enclosing class:
- SourceProvider
@Produces(value={"application/xml","text/xml","*/*"})
@Consumes(value={"application/xml","text/xml","*/*"})
@Singleton
public static final class SourceProvider.DomSourceReader- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<DOMSource>
Provider for marshalling/un-marshalling DOMSource instances.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceProvider.DomSourceReader
public SourceProvider.DomSourceReader(@Context
org.glassfish.hk2.api.Factory<DocumentBuilderFactory> dbf)
isReadable
public boolean isReadable(Class<?> t,
Type gt,
Annotation[] as,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<DOMSource>
readFrom
public DOMSource readFrom(Class<DOMSource> t,
Type gt,
Annotation[] as,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException
- Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<DOMSource>
- Throws:
IOException
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.