@Controller @RequestMapping(value="/charts") public class ChartController extends Object
| Constructor and Description |
|---|
ChartController(ChartDataService chartDataService,
ChartVisualizationServiceFactory chartVisualizationServiceFactory,
FileStore fileStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
getFile(OutputStream out,
String name,
String extension,
javax.servlet.http.HttpServletResponse response)
Gets a file from the filestore.
|
Map<String,String> |
handleRuntimeException(RuntimeException e) |
String |
renderHeatMap(HeatMapRequest request,
org.springframework.ui.Model model)
Renders a heatmap with r
Returns a piece of javascript that can be retrieved by an html page with an ajax request.
|
Options |
renderPlotBoxChart(BoxPlotChartRequest request,
org.springframework.ui.Model model) |
Options |
renderXYDataChart(XYDataChartRequest request,
org.springframework.ui.Model model) |
String |
test(javax.servlet.http.HttpServletRequest request,
org.springframework.ui.Model model) |
public static final String URI
@Autowired public ChartController(ChartDataService chartDataService, ChartVisualizationServiceFactory chartVisualizationServiceFactory, FileStore fileStore)
@RequestMapping(value="/test") public String test(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
@RequestMapping(value="/xydatachart",
method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public Options renderXYDataChart(@RequestBody
XYDataChartRequest request,
org.springframework.ui.Model model)
@RequestMapping(value="/boxplot",
method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public Options renderPlotBoxChart(@RequestBody
BoxPlotChartRequest request,
org.springframework.ui.Model model)
@RequestMapping(value="/get/{name}.{extension}")
public void getFile(OutputStream out,
@PathVariable(value="name")
String name,
@PathVariable(value="extension")
String extension,
javax.servlet.http.HttpServletResponse response)
throws IOException
out - name - extension - fileNames - response - IOException@RequestMapping(value="/heatmap",
method=POST,
consumes="application/json")
@ResponseBody
public String renderHeatMap(@RequestBody
HeatMapRequest request,
org.springframework.ui.Model model)
throws IOException,
freemarker.template.TemplateException,
XMLStreamException,
FactoryConfigurationError
request - model - IOExceptionfreemarker.template.TemplateExceptionFactoryConfigurationErrorXMLStreamException@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public Map<String,String> handleRuntimeException(RuntimeException e)
Copyright © 2014. All Rights Reserved.