Package org.graylog2.rest
Class ScrollChunkWriter
java.lang.Object
org.graylog2.rest.ScrollChunkWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<ResultChunk>
@Provider
@Produces("text/csv")
public class ScrollChunkWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<ResultChunk>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(ResultChunk scrollChunk, 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
(ResultChunk scrollChunk, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
ScrollChunkWriter
public ScrollChunkWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<ResultChunk>
-
getSize
public long getSize(ResultChunk scrollChunk, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<ResultChunk>
-
writeTo
public void writeTo(ResultChunk scrollChunk, 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 interfacejavax.ws.rs.ext.MessageBodyWriter<ResultChunk>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-