Class TabularResponseWriter
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 Summary
ConstructorsConstructorDescriptionTabularResponseWriter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisWriteable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(TabularResponse tabularResponse, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.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, waitMethods inherited from interface jakarta.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, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<TabularResponse>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-