Package com.sportdataapi
Class SdaClientFactory
java.lang.Object
com.sportdataapi.SdaClientFactory
public class SdaClientFactory
extends java.lang.Object
Entrypoint for usage. Factory to create clients.
- Author:
- ralph
-
Constructor Summary
Constructors Constructor Description SdaClientFactory()
-
Method Summary
Modifier and Type Method Description static SdaClient
newClient(java.lang.String apiKey)
Builds a new sportdataapi.com client (no debugging).static SdaClient
newClient(java.lang.String apiKey, boolean isDebug)
Builds a new sportdataapi.com client.static SdaClient
newClient(java.lang.String apiKey, org.glassfish.jersey.client.ClientConfig config)
Builds a new sportdataapi.com client.
-
Constructor Details
-
SdaClientFactory
public SdaClientFactory()
-
-
Method Details
-
newClient
Builds a new sportdataapi.com client (no debugging).- Parameters:
apiKey
- - the API key- Returns:
- the client
-
newClient
Builds a new sportdataapi.com client.- Parameters:
apiKey
- - the API keyisDebug
- - whether the requests shall be debugged- Returns:
- the client
-
newClient
public static SdaClient newClient(java.lang.String apiKey, org.glassfish.jersey.client.ClientConfig config)Builds a new sportdataapi.com client.- Parameters:
apiKey
- - the API keyconfig
- - Jersey client config- Returns:
- the client
-