public class GvizHelper extends Object
Constructor and Description |
---|
GvizHelper() |
Modifier and Type | Method and Description |
---|---|
protected static com.google.visualization.datasource.datatable.DataTable |
getDataTable(XYInterpolatedValueList list) |
protected static String |
getGvizDataErrorResponse(com.google.visualization.datasource.base.DataSourceException e) |
static String |
getGvizQueryString(org.restlet.resource.ServerResource server,
String type) |
static String |
getGvizResponse(Object resource,
String tqxString,
String tqString) |
protected static String |
getGvizResponseFromDataTable(com.google.visualization.datasource.datatable.DataTable table,
String tqxString) |
public static String getGvizQueryString(org.restlet.resource.ServerResource server, String type)
server
- the restlet ServerResourcetype
- type of the gviz query string, such as tqx, or tqpublic static String getGvizResponse(Object resource, String tqxString, String tqString)
resource
- server resource objecttqxString
- gviz tqx query string, i.e., request idtqString
- gviz tq query string, selectable fieldsprotected static com.google.visualization.datasource.datatable.DataTable getDataTable(XYInterpolatedValueList list) throws com.google.visualization.datasource.base.DataSourceException
list
- The XYInterpolatedValueList.com.google.visualization.datasource.base.DataSourceException
- if there is a data source problem.protected static String getGvizDataErrorResponse(com.google.visualization.datasource.base.DataSourceException e)
e
- DataSourceExceptionCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.