/** * Constructor. * * @param apiRequest The request for which the response is being processed * @param objectMappers Jackson mappers to use for processing JSON */ public MappingResponseProcessor(DataApiRequest apiRequest, ObjectMappersSuite objectMappers) { this.apiRequest = apiRequest; this.mappers = buildResultSetMapperList(apiRequest); this.headers = buildHeaderList(); this.responseContext = new ResponseContext(apiRequest.getDimensionFields()); this.objectMappers = objectMappers; }