Subversion Repositories SmartDukaan

Rev

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

Rev 23509 Rev 23526
Line 251... Line 251...
251
		}
251
		}
252
	}
252
	}
253
 
253
 
254
 
254
 
255
	public static String getIconUrl(int entityId,String host, int port, String webapp){
255
	public static String getIconUrl(int entityId,String host, int port, String webapp){
256
		RestClient rc = new RestClient(SchemeType.HTTP, host , port);
256
		RestClient rc = new RestClient();
257
		Map<String, String> params = new HashMap<String, String>();
257
		Map<String, String> params = new HashMap<String, String>();
258
		String response = null;
258
		String response = null;
259
		String uri = webapp+"/entity/"+entityId;
259
		String uri = webapp+"/entity/"+entityId;
260
		Map<String, String> headers = new HashMap<>(1);
260
		Map<String, String> headers = new HashMap<>(1);
261
		headers.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
261
		headers.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
262
		try {
262
		try {
263
			response = rc.get(uri, params, headers);
263
			response = rc.get(SchemeType.HTTP, host , port, uri, params, headers);
264
		} catch (Throwable e) {
264
		} catch (Throwable e) {
265
			// TODO Auto-generated catch block
265
			// TODO Auto-generated catch block
266
			e.printStackTrace();
266
			e.printStackTrace();
267
			return "";
267
			return "";
268
		}
268
		}