Class ResourceMessageWriter

java.lang.Object
org.nuxeo.template.xdocreport.jaxrs.ResourceMessageWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>

public class ResourceMessageWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
Author:
Tiry
  • Constructor Details

    • ResourceMessageWriter

      public ResourceMessageWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
    • getSize

      public long getSize(fr.opensagres.xdocreport.remoting.resources.domain.Resource t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
    • writeTo

      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
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<fr.opensagres.xdocreport.remoting.resources.domain.Resource>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException