File tree Expand file tree Collapse file tree 6 files changed +13
-8
lines changed
samples/groupdocs-viewer-java-ui-spring-boot
src/main/java/com/groupdocs/viewerui/ui Expand file tree Collapse file tree 6 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ User Interface for GroupDocs.Viewer for Java. API for easily integrating a docum
2121 <dependency >
2222 <groupId >com.groupdocs</groupId >
2323 <artifactId >groupdocs-viewer-ui</artifactId >
24- <version >24.2 </version >
24+ <version >24.4 </version >
2525 </dependency >
2626
2727 <dependency >
2828 <groupId >com.groupdocs</groupId >
2929 <artifactId >groupdocs-viewer</artifactId >
30- <version >24.2 </version >
30+ <version >24.4 </version >
3131 </dependency >
3232 <dependency >
3333 <groupId >com.fasterxml.jackson.core</groupId >
Original file line number Diff line number Diff line change 66
77 <groupId >com.groupdocs</groupId >
88 <artifactId >groupdocs-viewer-ui</artifactId >
9- <version >24.2 </version >
9+ <version >24.4 </version >
1010 <packaging >jar</packaging >
1111
1212 <name >GroupDocs.Viewer for Java User Interface</name >
5454 <dependency >
5555 <groupId >com.groupdocs</groupId >
5656 <artifactId >groupdocs-viewer</artifactId >
57- <version >24.2 </version >
57+ <version >24.4 </version >
5858 <scope >provided</scope >
5959 </dependency >
6060 <dependency >
Original file line number Diff line number Diff line change 66 <artifactId >groupdocs-viewer-ui</artifactId >
77 <name >GroupDocs.Viewer for Java User Interface</name >
88 <url >https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java-UI</url >
9- <version >24.2 </version >
9+ <version >24.4 </version >
1010 <description >
1111 GroupDocs.Viewer UI is a rich UI interface that designed to work in conjunction with GroupDocs.Viewer for Java to display most popular file and document formats in a browser.
1212 To integrate GroupDocs.Viewer UI in your Java project you just need to configure Viewer API and handle requests using specific endpoint handler provided in GroupDocs.Viewer.UI.
Original file line number Diff line number Diff line change 1010 </parent >
1111 <groupId >com.example</groupId >
1212 <artifactId >groupdocs-viewer-java-ui-spring-boot</artifactId >
13- <version >24.2 </version >
13+ <version >24.4 </version >
1414 <name >demo</name >
1515 <description >Demo project for Spring Boot</description >
1616 <properties >
3737 <dependency >
3838 <groupId >com.groupdocs</groupId >
3939 <artifactId >groupdocs-viewer</artifactId >
40- <version >24.2 </version >
40+ <version >24.4 </version >
4141 </dependency >
4242 <dependency >
4343 <groupId >com.fasterxml.jackson.core</groupId >
Original file line number Diff line number Diff line change 22
33import com .groupdocs .viewer .FileType ;
44
5+ import java .util .Locale ;
6+
57public class FileExtensionFileTypeResolver implements FileTypeResolver {
68
79 @ Override
810 public FileType resolveFileType (String filePath ) {
911 String extension = filePath .substring (filePath .lastIndexOf ('.' ));
1012
11- return FileType .fromExtension (extension );
13+ return FileType .fromExtension (extension . toLowerCase ( Locale . ROOT ) );
1214 }
1315
1416}
Original file line number Diff line number Diff line change @@ -266,6 +266,9 @@ public Config setViewerType(ViewerType viewerType) {
266266 }
267267
268268 public Config setPreloadPageCount (int countPages ) {
269+ if (countPages < 0 ) {
270+ throw new IllegalArgumentException ("Specified page count '" + countPages + "' is negative, which is prohibited" );
271+ }
269272 _preloadPageCount = countPages ;
270273 return this ;
271274 }
You can’t perform that action at this time.
0 commit comments