public class ResourceMessageWriter extends Object implements javax.ws.rs.ext.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,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(fr.opensagres.xdocreport.remoting.resources.domain.Resource res,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream out) |
public ResourceMessageWriter()
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.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, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.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, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream out) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2016 Nuxeo SA. All rights reserved.