Class PdfferController

java.lang.Object
org.nekosoft.pdffer.web.PdfferController

@RestController @ConditionalOnWebApplication @ConditionalOnBean(type="org.nekosoft.pdffer.PdfferProducerBean") @ConditionalOnProperty(name="pdffer.web.controller.enable", havingValue="true", matchIfMissing=false) @RequestMapping("${pdffer.web.controller.base_uri:pdffer}") public class PdfferController extends Object
The type Pdffer controller.
  • Constructor Details

    • PdfferController

      public PdfferController(PdfferProducerBean pdfferProducer)
      Instantiates a new Pdffer controller.
      Parameters:
      pdfferProducer - the pdffer producer
  • Method Details

    • download

      @PostMapping("${pdffer.web.controller.download_uri:download}/{templateId}") public org.springframework.http.ResponseEntity<byte[]> download(@PathVariable String templateId, @RequestBody DownloadRequestData requestData)
      Download response entity.
      Parameters:
      templateId - the template id
      requestData - the request data
      Returns:
      the response entity
    • save

      @PostMapping("${pdffer.web.controller.save_uri:save}/{templateId}") public void save(@PathVariable String templateId)
      Save.
      Parameters:
      templateId - the template id