Class SourceProvider.DomSourceReader
java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.DomSourceReader
- All Implemented Interfaces:
MessageBodyReader<DOMSource>
- Enclosing class:
- SourceProvider
@Produces({"application/xml","text/xml","*/*"})
@Consumes({"application/xml","text/xml","*/*"})
@Singleton
public static final class SourceProvider.DomSourceReader
extends Object
implements MessageBodyReader<DOMSource>
Provider for marshalling/un-marshalling
DOMSource
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> t, Type gt, Annotation[] as, MediaType mediaType) readFrom
(Class<DOMSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
DomSourceReader
-
-
Method Details
-
isReadable
- Specified by:
isReadable
in interfaceMessageBodyReader<DOMSource>
-
readFrom
public DOMSource readFrom(Class<DOMSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Specified by:
readFrom
in interfaceMessageBodyReader<DOMSource>
- Throws:
IOException
-