public class ExporterResource
extends java.lang.Object
Constructor and Description |
---|
ExporterResource() |
Modifier and Type | Method and Description |
---|---|
Response |
exportChart(java.lang.String type,
java.lang.String svg,
java.lang.Integer size,
java.lang.String name)
Export chart to a file.
|
Response |
exportCsv(java.lang.String file,
java.lang.String formatter,
HttpServletRequest servletRequest)
Export the query to a CSV file format.
|
Response |
exportExcel(java.lang.String file,
java.lang.String formatter,
java.lang.String name,
HttpServletRequest servletRequest)
Export query to excel file format.
|
Response |
exportHtml(java.lang.String file,
java.lang.String formatter,
java.lang.Boolean css,
java.lang.Boolean tableonly,
java.lang.Boolean wrapcontent,
HttpServletRequest servletRequest)
Export the current resultset to an HTML file.
|
Response |
exportJson(java.lang.String file,
java.lang.String formatter,
HttpServletRequest servletRequest)
Export the query response to JSON.
|
public Response exportExcel(java.lang.String file, java.lang.String formatter, java.lang.String name, HttpServletRequest servletRequest)
file
- The fileformatter
- The cellset formattername
- The nameservletRequest
- The servlet request.public Response exportCsv(java.lang.String file, java.lang.String formatter, HttpServletRequest servletRequest)
file
- The fileformatter
- The cellset formatterservletRequest
- The servlet requestpublic Response exportJson(java.lang.String file, java.lang.String formatter, HttpServletRequest servletRequest)
file
- The fileformatter
- The cellset formatterservletRequest
- The servlet requestpublic Response exportHtml(java.lang.String file, java.lang.String formatter, java.lang.Boolean css, java.lang.Boolean tableonly, java.lang.Boolean wrapcontent, HttpServletRequest servletRequest)
file
- The fileformatter
- The formattercss
- The csstableonly
- Table only, or include chartwrapcontent
- Wrap contentservletRequest
- The servlet reaquest.public Response exportChart(java.lang.String type, java.lang.String svg, java.lang.Integer size, java.lang.String name)
type
- The export type (png, svg, jpeg)svg
- The SVGsize
- The sizename
- The name