@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(jakarta.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 jakarta.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-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.