public void themeManagerCreateTheme(String themeName) { HttpRequest request = new HttpRequest("LocalHost", "ThemeManager", HttpMethod.POST); request.addQueryParam("action", "createTheme"); request.addQueryParam("themeName", themeName); System.out.println(request.toString() + "\n"); new Client().send(request); }
public void votingVoteTheme(String themeName, int value) { HttpRequest request = new HttpRequest("LocalHost", "Voting", HttpMethod.POST); request.addQueryParam("action", "voteTheme"); request.addQueryParam("themeName", themeName); request.addQueryParam("value", "" + value); System.out.println(request.toString() + "\n"); new Client().send(request); }