Class HttpUtil

java.lang.Object
live.crowdcontrol.cc4j.util.HttpUtil

public class HttpUtil extends Object
  • Field Details

    • OPEN_API_URL

      @NotNull public static final @NotNull URL OPEN_API_URL
    • HTTP_CLIENT

      public static final HttpClient HTTP_CLIENT
  • Constructor Details

    • HttpUtil

      public HttpUtil(@NotNull @NotNull CrowdControl parent)
  • Method Details

    • apiGet

      @NotNull public <T> @NotNull CompletableFuture<T> apiGet(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token)
    • apiGet

      @NotNull public <T> @NotNull CompletableFuture<T> apiGet(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token)
    • apiGet

      @NotNull public @NotNull CompletableFuture<String> apiGet(@NotNull @NotNull String spec, @Nullable @Nullable String token)
    • apiPost

      @NotNull public <T> @NotNull CompletableFuture<T> apiPost(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data)
    • apiPost

      @NotNull public <T> @NotNull CompletableFuture<T> apiPost(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data)
    • apiPost

      @NotNull public @NotNull CompletableFuture<String> apiPost(@NotNull @NotNull String spec, @Nullable @Nullable String token, @Nullable @Nullable Object data)
    • apiPut

      @NotNull public <T> @NotNull CompletableFuture<T> apiPut(@NotNull @NotNull String spec, @NotNull @NotNull com.fasterxml.jackson.core.type.TypeReference<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data)
    • apiPut

      @NotNull public <T> @NotNull CompletableFuture<T> apiPut(@NotNull @NotNull String spec, @NotNull @NotNull Class<T> output, @Nullable @Nullable String token, @Nullable @Nullable Object data)
    • apiPut

      @NotNull public @NotNull CompletableFuture<String> apiPut(@NotNull @NotNull String spec, @Nullable @Nullable String token, @Nullable @Nullable Object data)