Class ResourceIOReaderWriterFactory.ResourceIOWriter

java.lang.Object
org.apache.druid.server.ResourceIOReaderWriterFactory.ResourceIOWriter
Enclosing class:
ResourceIOReaderWriterFactory

public static class ResourceIOReaderWriterFactory.ResourceIOWriter extends Object
Handles writing query response to the client in different formats.
  • Method Details

    • ok

      public javax.ws.rs.core.Response ok(Object object) throws IOException
      Builds a Response with ok status and the given object serialized to the response format.
      Throws:
      IOException
    • gotError

      public javax.ws.rs.core.Response gotError(Exception e) throws IOException
      Builds a Response with internal server error status and the given exception.
      Throws:
      IOException
    • buildNonOkResponse

      public javax.ws.rs.core.Response buildNonOkResponse(int status, Exception e) throws com.fasterxml.jackson.core.JsonProcessingException
      Builds a Response with the given status and the exception.
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException