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 Summary
ConstructorsModifierConstructorDescriptionprotectedRedactingCollectionMessageBodyWriter(MessageBodyRedactor<T> redactor, Class<T> clazz, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Collection<T> entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) voidwriteTo(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)
-
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:
isWriteablein interfacejavax.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:
getSizein interfacejavax.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:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<T>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-