@Provider @Produces(value={"text/xml","text/*+xml","application/xml","application/*+xml"}) @Consumes(value={"text/xml","text/*+xml","application/xml","application/*+xml"}) public class DocumentProvider extends AbstractEntityProvider<Document> implements AsyncBufferedMessageBodyWriter<Document>
Constructor and Description |
---|
DocumentProvider() |
DocumentProvider(ResteasyConfiguration config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> clazz,
Type type,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> clazz,
Type type,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType) |
Document |
readFrom(Class<Document> clazz,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream input) |
void |
writeTo(Document document,
Class<?> clazz,
Type type,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream output) |
getSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asyncWriteTo
public DocumentProvider()
public DocumentProvider(@Context ResteasyConfiguration config)
public boolean isReadable(Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<Document>
public Document readFrom(Class<Document> clazz, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream input) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<Document>
IOException
javax.ws.rs.WebApplicationException
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<Document>
public void writeTo(Document document, Class<?> clazz, Type type, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream output) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<Document>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2020 JBoss by Red Hat. All rights reserved.