Package org.nekosoft.pdffer.web
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 Summary
ConstructorDescriptionPdfferController(PdfferProducerBean pdfferProducer)
Instantiates a new Pdffer controller. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]>
download(String templateId, DownloadRequestData requestData)
Download response entity.void
Save.
-
Constructor Details
-
PdfferController
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 idrequestData
- 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
-