public interface ResponseProcessorFactory
ResponseProcessor
relies on things that are directly constructed at request time (i.e. the
DataApiRequest
). Therefore, we can't inject a `ResponseProcessor` directly. We can however inject a factory.Modifier and Type | Method and Description |
---|---|
ResponseProcessor |
build(DataApiRequest apiRequest,
rx.subjects.Subject<PreResponse,PreResponse> responseEmitter,
DruidResponseParser druidResponseParser,
ObjectMappersSuite objectMappers,
HttpResponseMaker httpResponseMaker)
Constructs a custom ResponseProcessor.
|
ResponseProcessor build(DataApiRequest apiRequest, rx.subjects.Subject<PreResponse,PreResponse> responseEmitter, DruidResponseParser druidResponseParser, ObjectMappersSuite objectMappers, HttpResponseMaker httpResponseMaker)
apiRequest
- The current requestresponseEmitter
- Generates the response to be processeddruidResponseParser
- Transforms a druid response into a ResultSet
objectMappers
- Dictates how to formathttpResponseMaker
- Crafts an HTTP response to be sent back to the user from a ResultSet or error messageCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.