public class ResourceMessageWriter extends Object implements MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
Constructor and Description |
---|
ResourceMessageWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(fr.opensagres.xdocreport.remoting.resources.domain.Resource t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(fr.opensagres.xdocreport.remoting.resources.domain.Resource res,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream out) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable
in interface MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
public long getSize(fr.opensagres.xdocreport.remoting.resources.domain.Resource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize
in interface MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
public void writeTo(fr.opensagres.xdocreport.remoting.resources.domain.Resource res, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream out) throws IOException, WebApplicationException
writeTo
in interface MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
IOException
WebApplicationException
Copyright © 2012 Nuxeo SA. All Rights Reserved.