java.lang.Object
org.graylog.plugins.views.search.rest.scriptingapi.response.writers.TabularResponseWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<TabularResponse>

@Provider @Produces({"application/json","text/csv","text/plain"}) public class TabularResponseWriter extends Object implements jakarta.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, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<TabularResponse>
    • writeTo

      public void writeTo(TabularResponse tabularResponse, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> multivaluedMap, OutputStream outputStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<TabularResponse>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException