Class RedactingCollectionMessageBodyWriter<T>

java.lang.Object
com.lucidworks.apollo.rest.providers.RedactingCollectionMessageBodyWriter<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Collection<T>>

public abstract class RedactingCollectionMessageBodyWriter<T> extends Object implements javax.ws.rs.ext.MessageBodyWriter<Collection<T>>
  • Constructor Details

    • RedactingCollectionMessageBodyWriter

      protected RedactingCollectionMessageBodyWriter(MessageBodyRedactor<T> redactor, Class<T> clazz, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • 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<T>
    • getSize

      public long getSize(Collection<T> entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<T>
    • writeTo

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