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 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 interface javax.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 interface javax.ws.rs.ext.MessageBodyWriter<TabularResponse>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException