Subversion Repositories SmartDukaan

Rev

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

Rev 30296 Rev 30613
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");
150
		return restClient.getResponse(reporticoUrl, params, new HashMap<>());
152
		return restClient.getResponse(reporticoUrl, params, headersMap);
151
	}
153
	}
152
 
154
 
153
	public <T> List<T> getReports(Class<T> className, ReporticoProject project, String reportName,
155
	public <T> List<T> getReports(Class<T> className, ReporticoProject project, String reportName,
154
			Map<String, String> params) throws Exception {
156
			Map<String, String> params) throws Exception {
155
		HttpResponse reportResponse = this.getJsonFile(project, reportName, params);
157
		HttpResponse reportResponse = this.getJsonFile(project, reportName, params);