org.jboss.resteasy.plugins.providers
@Provider public class DocumentProvider extends AbstractEntityProvider<Document>
Constructor and Description |
---|
DocumentProvider(ResteasyConfiguration config) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType) |
boolean |
isWriteable(Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType) |
Document |
readFrom(Class<Document> clazz,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> headers,
InputStream input) |
void |
writeTo(Document document,
Class<?> clazz,
Type type,
Annotation[] annotation,
MediaType mediaType,
MultivaluedMap<String,Object> headers,
OutputStream output) |
getSize
public DocumentProvider(@Context ResteasyConfiguration config)
public boolean isReadable(Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType)
public Document readFrom(Class<Document> clazz, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream input) throws IOException, WebApplicationException
IOException
WebApplicationException
public boolean isWriteable(Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType)
public void writeTo(Document document, Class<?> clazz, Type type, Annotation[] annotation, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream output) throws IOException, WebApplicationException
IOException
WebApplicationException
Copyright © 2017. All Rights Reserved.