Package com.caplin.charting
Interface ChartDataProvider
public interface ChartDataProvider
The interface that must be implemented to retrieve the chart data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
requestChartData
(ChartDataRequest request) This call indicates that a request for chart data has been received.
-
Method Details
-
requestChartData
This call indicates that a request for chart data has been received. The ChartDataProvider should retrieve the data according to the criteria, (which can be retrieved from the request by callingrequest.getCriteria()
) and pass it back to the requester by calling sendDataResponse on the request.If this request is invalid, the ChartDataProvider should call sendErrorResponse on the request.
- Parameters:
request
- the request for the data, consisting of the parameters that can be got with request.getCriteria, and methods to respond to the request with data or an error.
-