Package org.apache.druid.server
Class ResourceIOReaderWriterFactory.ResourceIOWriter
java.lang.Object
org.apache.druid.server.ResourceIOReaderWriterFactory.ResourceIOWriter
- Enclosing class:
- ResourceIOReaderWriterFactory
Handles writing query response to the client in different formats.
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsebuildNonOkResponse(int status, Exception e) Builds aResponsewith the given status and the exception.javax.ws.rs.core.ResponseBuilds aResponsewith internal server error status and the given exception.javax.ws.rs.core.ResponseBuilds aResponsewith ok status and the given object serialized to the response format.
-
Method Details
-
ok
Builds aResponsewith ok status and the given object serialized to the response format.- Throws:
IOException
-
gotError
Builds aResponsewith 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 aResponsewith the given status and the exception.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-