@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
|
Options |
renderPlotBoxChart(BoxPlotChartRequest request,
org.springframework.ui.Model model) |
Options |
renderXYDataChart(XYDataChartRequest request,
org.springframework.ui.Model model) |
public static final String URI
@Autowired public ChartController(ChartDataService chartDataService, ChartVisualizationServiceFactory chartVisualizationServiceFactory, FileStore fileStore)
@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
User can only view his own files he created with the charts module
out - name - extension - 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
Returns a piece of javascript that can be retrieved by an html page with an ajax request.
The page must have an element with id named 'container'. The svg image will be added to this container element.
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 © 2017. All rights reserved.