Class FacetsWriter

java.lang.Object
org.nuxeo.ecm.restapi.jaxrs.io.types.AbstractTypeDefWriter
org.nuxeo.ecm.restapi.jaxrs.io.types.FacetsWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Facets>

@Provider public class FacetsWriter extends AbstractTypeDefWriter implements javax.ws.rs.ext.MessageBodyWriter<Facets>
  • Constructor Details

    • FacetsWriter

      public FacetsWriter()
  • Method Details

    • writeTo

      public void writeTo(Facets facets, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Facets>
      Throws:
      IOException
    • getSize

      public long getSize(Facets arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<Facets>
    • isWriteable

      public boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Facets>