Package com.esprit.utils
Class ImdbAPI
java.lang.Object
com.esprit.utils.ImdbAPI
Utility class providing helper methods for the RAKCHA application. Contains
reusable functionality and common operations.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- RAKCHA Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
searchMovie
(String query) Search for a movie on IMDb
-
Field Details
-
LOGGER
-
API_URL
- See Also:
-
MAX_RETRIES
private static final int MAX_RETRIES- See Also:
-
RETRY_DELAY_MS
private static final int RETRY_DELAY_MS- See Also:
-
-
Constructor Details
-
ImdbAPI
public ImdbAPI()
-
-
Method Details
-
searchMovie
Search for a movie on IMDb- Parameters:
query
- The movie title to search for- Returns:
- The IMDb URL of the first matching result, or null if not found
- Throws:
IOException
- if there's an error communicating with the API
-