Class CSVController


  • @RestController
    public class CSVController
    extends java.lang.Object
    Controller to export CSV File
    • Constructor Summary

      Constructors 
      Constructor Description
      CSVController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCSV​(java.lang.String q)
      gathers csv relating to the query given or just the empty string if none given.
      java.lang.String getCSVItem​(java.lang.String q)
      gathers csv relating to the item given or just the empty string if none given.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSVController

        public CSVController()
    • Method Detail

      • getCSV

        @RequestMapping("/export")
        public java.lang.String getCSV​(@RequestParam(defaultValue="",required=false)
                                       java.lang.String q)
        gathers csv relating to the query given or just the empty string if none given.
        Returns:
        appropriate csv file.
      • getCSVItem

        @RequestMapping("/exportItem")
        public java.lang.String getCSVItem​(@RequestParam(defaultValue="",required=false)
                                           java.lang.String q)
        gathers csv relating to the item given or just the empty string if none given.
        Returns:
        appropriate csv file.