Class TabularResponseWriter
java.lang.Object
org.graylog.plugins.views.search.rest.scriptingapi.response.writers.TabularResponseWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<TabularResponse>
@Provider
@Produces({"application/json","text/csv","text/plain"})
public class TabularResponseWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<TabularResponse>
-
Constructor Summary
ConstructorDescriptionTabularResponseWriter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) void
writeTo
(TabularResponse tabularResponse, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> multivaluedMap, OutputStream outputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
TabularResponseWriter
@Inject public TabularResponseWriter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<TabularResponse>
-
writeTo
public void writeTo(TabularResponse tabularResponse, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> multivaluedMap, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<TabularResponse>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-