@Produces(value={"application/xml","text/xml","*/*"}) @Consumes(value={"application/xml","text/xml","*/*"}) @Singleton public static final class SourceProvider.DomSourceReader extends Object implements MessageBodyReader<DOMSource>
DOMSource
instances.Constructor and Description |
---|
DomSourceReader(javax.inject.Provider<DocumentBuilderFactory> dbf) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType) |
DOMSource |
readFrom(Class<DOMSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
@Inject public DomSourceReader(@Context javax.inject.Provider<DocumentBuilderFactory> dbf)
public boolean isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
isReadable
in interface MessageBodyReader<DOMSource>
public DOMSource readFrom(Class<DOMSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom
in interface MessageBodyReader<DOMSource>
IOException
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.