File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1515,7 +1515,7 @@ This service is used for requesting a thumbnail image of an existing resource. Y
15151515InputStream entity = session. thumbnailsService()
15161516 .thumbnail()
15171517 .report(" /public/Samples/Reports/08g.UnitSalesDetailReport" )
1518- .parameter( ThumbnailsParameter . DEFAULT_ALLOWED , true )
1518+ .defaultAllowed( true )
15191519 .get()
15201520 .getEntity();
15211521```
@@ -1525,11 +1525,23 @@ List<ResourceThumbnail> entity = session.thumbnailsService()
15251525 .thumbnails()
15261526 .reports(asList(" /public/Samples/Reports/08g.UnitSalesDetailReport" ,
15271527 " /public/Samples/Reports/11g.SalesByMonthReport" ))
1528- .parameter( ThumbnailsParameter . DEFAULT_ALLOWED , true )
1528+ .defaultAllowed( true )
15291529 .get()
15301530 .getEntity()
15311531 .getThumbnails();
15321532```
1533+ By default you obtain multiple resources using POST HTTP method, but you can switch to GET method using ` requestMethod(RequestMethod.GET) ` method:
1534+ ``` java
1535+ List<ResourceThumbnail > entity = session. thumbnailsService()
1536+ .thumbnails()
1537+ .reports(asList(" /public/Samples/Reports/08g.UnitSalesDetailReport" ,
1538+ " /public/Samples/Reports/11g.SalesByMonthReport" ))
1539+ .defaultAllowed(true )
1540+ .requestMethod(RequestMethod . GET )
1541+ .get()
1542+ .getEntity()
1543+ .getThumbnails();
1544+ ```
15331545Please notice that ResourceThumbnail class (DTO ) contains the content in Base64 string format (not InputStream ).
15341546####QueryExecutor Service
15351547In addition to running reports, JasperReports Server exposes queries that you can run through the QueryExecutor service.
You can’t perform that action at this time.
0 commit comments