@Produces(value={"application/xml","text/xml","*/*"})
@Consumes(value={"application/xml","text/xml","*/*"})
@Singleton
public final class DocumentProvider
extends AbstractMessageReaderWriterProvider<Document>
XML document instances.UTF8| Constructor and Description |
|---|
DocumentProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
Document |
readFrom(Class<Document> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Document t,
Class<?> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType,
jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
getCharset, getSize, readFromAsString, writeTo, writeTo, writeToAsStringpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
public Document readFrom(Class<Document> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
IOExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
public void writeTo(Document t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
IOExceptionCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.