Subversion Repositories SmartDukaan

Rev

Rev 30613 | Rev 30648 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30613 Rev 30615
Line 145... Line 145...
145
		Map<String, String> authMap = projectAuthMap.get(projectName);
145
		Map<String, String> authMap = projectAuthMap.get(projectName);
146
		params.putAll(authMap);
146
		params.putAll(authMap);
147
		params.put("xmlin", reportName);
147
		params.put("xmlin", reportName);
148
		params.put("target_format", "JSON");
148
		params.put("target_format", "JSON");
149
		params.put("execute_mode", "EXECUTE");
149
		params.put("execute_mode", "EXECUTE");
150
		Map<String, String> headersMap = new HashMap<>();
-
 
151
		headersMap.put("User-Agent", "Other");
-
 
152
		return restClient.getResponse(reporticoUrl, params, headersMap);
150
		return restClient.getResponse(reporticoUrl, params, new HashMap<>());
153
	}
151
	}
154
 
152
 
155
	public <T> List<T> getReports(Class<T> className, ReporticoProject project, String reportName,
153
	public <T> List<T> getReports(Class<T> className, ReporticoProject project, String reportName,
156
			Map<String, String> params) throws Exception {
154
			Map<String, String> params) throws Exception {
157
		HttpResponse reportResponse = this.getJsonFile(project, reportName, params);
155
		HttpResponse reportResponse = this.getJsonFile(project, reportName, params);