Пример #1
0
  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);
  }
Пример #2
0
  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);
  }