Skip to content

Commit df2d219

Browse files
author
TanyaEf
committed
Updated README.md
1 parent 7bd3bb4 commit df2d219

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ This service is used for requesting a thumbnail image of an existing resource. Y
15151515
InputStream 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+
```
15331545
Please notice that ResourceThumbnail class (DTO) contains the content in Base64 string format (not InputStream).
15341546
####QueryExecutor Service
15351547
In addition to running reports, JasperReports Server exposes queries that you can run through the QueryExecutor service.

0 commit comments

Comments
 (0)