Package com.ptc.wbr.datasource
Class WRSJsonDataSource
java.lang.Object
com.ptc.wbr.datasource.WRSJsonDataSource
Supported API: true
Extendable: false This class act as a Wrapper to Json Data Source. It adds few parameter and passes on request to Jasper Library.
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.sf.jasperreports.engine.data.JsonDataSourcegetJsonDataSource(String restEndPoint) Get Json Response From WRS endpoint with Default select Expressionstatic net.sf.jasperreports.engine.data.JsonDataSourcegetJsonDataSource(String restEndPoint, String selectExpression) Get Json Response from WRS with provided select Expression
-
Method Details
-
getJsonDataSource
public static net.sf.jasperreports.engine.data.JsonDataSource getJsonDataSource(String restEndPoint) throws Exception Get Json Response From WRS endpoint with Default select Expression- Parameters:
restEndPoint-- Returns:
- Throws:
Exception-
Supported API: true
-
getJsonDataSource
public static net.sf.jasperreports.engine.data.JsonDataSource getJsonDataSource(String restEndPoint, String selectExpression) throws Exception Get Json Response from WRS with provided select Expression- Parameters:
restEndPoint-selectExpression-- Returns:
- Throws:
Exceptionnet.sf.jasperreports.engine.JRException-
Supported API: true
-