Package com.lariflix.jemm.core
Class CheckJellyfinConnection
java.lang.Object
com.lariflix.jemm.core.CheckJellyfinConnection
This class is used to check the connection to the Jellyfin server.
- Since:
- 1.0
- Author:
- Cesar Bianchi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Constructor for the CheckJellyfinConnection class.tryConnection
(String cURL, String cApiKey) Tries to establish a connection to the Jellyfin server.
-
Constructor Details
-
CheckJellyfinConnection
public CheckJellyfinConnection()
-
-
Method Details
-
CheckJellyfinConnection
public void CheckJellyfinConnection()Constructor for the CheckJellyfinConnection class.- Since:
- 1.0
-
tryConnection
public JellyfinConnectionResult tryConnection(String cURL, String cApiKey) throws MalformedURLException Tries to establish a connection to the Jellyfin server.- Parameters:
cURL
- The URL of the Jellyfin server.cApiKey
- The API key for the Jellyfin server.- Returns:
- A JellyfinConnectionResult object containing the result of the connection attempt.
- Throws:
MalformedURLException
- If the provided URL is not valid.- Since:
- 1.0
-