Class FileController

java.lang.Object
com.jibi.controller.FileController

@RestController("File Api") @RequestMapping("/file") public class FileController extends Object
The type File controller.
  • Constructor Details

    • FileController

      public FileController()
  • Method Details

    • imageFileType

      @RequestMapping(value="/image/{fileType}", method=GET, produces={"image/jpeg","image/gif","image/png","image/tiff","image/x-icon"}) @ResponseBody public byte[] imageFileType(@PathVariable String fileType) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      fileType - the file type
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoFileType

      @RequestMapping(value="/video/{fileType}", method=GET, produces={"video/avi","video/mov","video/mp4","video/ogg","video/wmv"}) @ResponseBody public byte[] videoFileType(@PathVariable String fileType) throws IOException
      Video file type byte [ ].
      Parameters:
      fileType - the file type
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • audioFileType

      @RequestMapping(value="/audio/{fileType}", method=GET, produces={"audio/mpeg3","audio/wav","audio/ogg"}) @ResponseBody public byte[] audioFileType(@PathVariable String fileType) throws IOException
      Audio file type byte [ ].
      Parameters:
      fileType - the file type
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentFileType

      @RequestMapping(value="/document/{fileType}", method=GET, produces={"application/doc","application/excel","application/powerpoint","application/pdf","application/odt","application/ods","application/odp","application/rtf"}) @ResponseBody public byte[] documentFileType(@PathVariable String fileType) throws IOException
      Document file type byte [ ].
      Parameters:
      fileType - the file type
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • otherFileType

      @RequestMapping(value="/other/{fileType}", method=GET, produces={"text/csv","text/html","text/plain","application/zip"}) @ResponseBody public byte[] otherFileType(@PathVariable String fileType) throws IOException
      Other file type byte [ ].
      Parameters:
      fileType - the file type
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • imageJpgSize

      @RequestMapping(value="/image/jpg/{size}", method=GET, produces="image/jpeg") @ResponseBody public byte[] imageJpgSize(@PathVariable String size) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • imageGifSize

      @RequestMapping(value="/image/gif/{size}", method=GET, produces="image/gif") @ResponseBody public byte[] imageGifSize(@PathVariable String size) throws IOException
      Image gif size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • imagePngSize

      @RequestMapping(value="/image/png/{size}", method=GET, produces="image/png") @ResponseBody public byte[] imagePngSize(@PathVariable String size) throws IOException
      Image png size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • imageTiffSize

      @RequestMapping(value="/image/tiff/{size}", method=GET, produces="image/tiff") @ResponseBody public byte[] imageTiffSize(@PathVariable String size) throws IOException
      Image tiff size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • imageIcoSize

      @RequestMapping(value="/image/ico/{size}", method=GET, produces="image/x-icon") @ResponseBody public byte[] imageIcoSize(@PathVariable String size) throws IOException
      Image ico size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoAviSize

      @RequestMapping(value="/video/avi/{size}", method=GET, produces="video/avi") @ResponseBody public byte[] videoAviSize(@PathVariable String size) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoMovSize

      @RequestMapping(value="/video/mov/{size}", method=GET, produces="video/mov") @ResponseBody public byte[] videoMovSize(@PathVariable String size) throws IOException
      Video mov size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoMp4Size

      @RequestMapping(value="/video/mp4/{size}", method=GET, produces="video/mp4") @ResponseBody public byte[] videoMp4Size(@PathVariable String size) throws IOException
      Video mp 4 size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoOggSize

      @RequestMapping(value="/video/ogg/{size}", method=GET, produces="video/ogg") @ResponseBody public byte[] videoOggSize(@PathVariable String size) throws IOException
      Video ogg size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • videoWmvSize

      @RequestMapping(value="/video/wmv/{size}", method=GET, produces="video/wmv") @ResponseBody public byte[] videoWmvSize(@PathVariable String size) throws IOException
      Video wmv size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • audioMp3Size

      @RequestMapping(value="/audio/mp3/{size}", method=GET, produces="audio/mpeg3") @ResponseBody public byte[] audioMp3Size(@PathVariable String size) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • audioWavSize

      @RequestMapping(value="/audio/wav/{size}", method=GET, produces="audio/wav") @ResponseBody public byte[] audioWavSize(@PathVariable String size) throws IOException
      Audio wav size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • audioOggSize

      @RequestMapping(value="/audio/ogg/{size}", method=GET, produces="audio/ogg") @ResponseBody public byte[] audioOggSize(@PathVariable String size) throws IOException
      Audio ogg size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentDocSize

      @RequestMapping(value="/document/doc/{size}", method=GET, produces="application/doc") @ResponseBody public byte[] documentDocSize(@PathVariable String size) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentDocxSize

      @RequestMapping(value="/document/docx/{size}", method=GET, produces="application/doc") @ResponseBody public byte[] documentDocxSize(@PathVariable String size) throws IOException
      Document docx size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentXlsSize

      @RequestMapping(value="/document/xls/{size}", method=GET, produces="application/xls") @ResponseBody public byte[] documentXlsSize(@PathVariable String size) throws IOException
      Document xls size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentXlsxSize

      @RequestMapping(value="/document/xlsx/{size}", method=GET, produces="application/xls") @ResponseBody public byte[] documentXlsxSize(@PathVariable String size) throws IOException
      Document xlsx size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentPptSize

      @RequestMapping(value="/document/ppt/{size}", method=GET, produces="application/ppt") @ResponseBody public byte[] documentPptSize(@PathVariable String size) throws IOException
      Document ppt size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentPdfSize

      @RequestMapping(value="/document/pdf/{size}", method=GET, produces="application/pdf") @ResponseBody public byte[] documentPdfSize(@PathVariable String size) throws IOException
      Document pdf size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentOdpSize

      @RequestMapping(value="/document/odp/{size}", method=GET, produces="application/odp") @ResponseBody public byte[] documentOdpSize(@PathVariable String size) throws IOException
      Document odp size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentOdsSize

      @RequestMapping(value="/document/ods/{size}", method=GET, produces="application/ods") @ResponseBody public byte[] documentOdsSize(@PathVariable String size) throws IOException
      Document ods size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentOdtSize

      @RequestMapping(value="/document/odt/{size}", method=GET, produces="application/odt") @ResponseBody public byte[] documentOdtSize(@PathVariable String size) throws IOException
      Document odt size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • documentRtfSize

      @RequestMapping(value="/document/rtf/{size}", method=GET, produces="application/rtf") @ResponseBody public byte[] documentRtfSize(@PathVariable String size) throws IOException
      Document rtf size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • otherCsvSize

      @RequestMapping(value="/other/csv/{size}", method=GET, produces="text/csv") @ResponseBody public byte[] otherCsvSize(@PathVariable String size) throws IOException
      *********************************************************************************************************************************************
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • otherHtmlSize

      @RequestMapping(value="/other/html/{size}", method=GET, produces="text/html") @ResponseBody public byte[] otherHtmlSize(@PathVariable String size) throws IOException
      Other html size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • otherTxtSize

      @RequestMapping(value="/other/txt/{size}", method=GET, produces="text/plain") @ResponseBody public byte[] otherTxtSize(@PathVariable String size) throws IOException
      Other txt size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception
    • otherZipSize

      @RequestMapping(value="/other/zip/{size}", method=GET, produces="application/zip") @ResponseBody public byte[] otherZipSize(@PathVariable String size) throws IOException
      Other zip size byte [ ].
      Parameters:
      size - the size
      Returns:
      the byte [ ]
      Throws:
      IOException - the io exception