Package org.adempiere.report.jasper
Class WebResourceLoader
- java.lang.Object
-
- org.adempiere.report.jasper.WebResourceLoader
-
public class WebResourceLoader extends Object
Load report resources from http or https- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description WebResourceLoader(String destinationFolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getReportFile(String reportFilePath)
File
getResourceBundle(String reportPath, String bundleName, Language currLang)
Get property resource file from http URLstatic boolean
isWebResourcePath(String path)
-
-
-
Constructor Detail
-
WebResourceLoader
public WebResourceLoader(String destinationFolder)
- Parameters:
destinationFolder
- destination folder to download report file to
-
-
Method Detail
-
getReportFile
public File getReportFile(String reportFilePath)
- Parameters:
reportFilePath
-- Returns:
- File
-
getResourceBundle
public File getResourceBundle(String reportPath, String bundleName, Language currLang)
Get property resource file from http URL- Parameters:
reportPath
-bundleName
-currLang
-- Returns:
- File
-
isWebResourcePath
public static boolean isWebResourcePath(String path)
- Parameters:
path
-- Returns:
- true if path is http or https
-
-