Class JavaNetTmdbHttpClient

java.lang.Object
dev.reuss.tmdb.core.http.JavaNetTmdbHttpClient
All Implemented Interfaces:
TmdbHttpClient

public final class JavaNetTmdbHttpClient extends Object implements TmdbHttpClient
TmdbHttpClient implementation based on Java's built-in HttpClient.

This client applies the configured TMDB authentication, builds absolute request URIs from TmdbRequest instances, sends HTTP GET requests and maps successful JSON responses to the requested Java type.

Non-successful HTTP responses are translated into SDK-specific runtime exceptions such as TmdbUnauthorizedException, TmdbNotFoundException, TmdbRateLimitException or TmdbServerException.

  • Constructor Details

    • JavaNetTmdbHttpClient

      public JavaNetTmdbHttpClient(TmdbClientConfig config)
      Creates a new HTTP client using the given TMDB client configuration.
      Parameters:
      config - the TMDB client configuration
      Throws:
      NullPointerException - if config is null
  • Method Details