Exemplo n.º 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);
  }
Exemplo n.º 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);
  }
Exemplo n.º 3
0
  public void themeManager() {
    HttpRequest request = new HttpRequest("LocalHost", "ThemeManager", HttpMethod.GET);
    System.out.println(request.toString() + "\n");

    new Client().send(request);
  }
Exemplo n.º 4
0
  public void voting() {
    HttpRequest request = new HttpRequest("LocalHost", "Voting", HttpMethod.GET);
    System.out.println(request.toString() + "\n");

    new Client().send(request);
  }