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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • newClient

      public static SdaClient newClient​(java.lang.String apiKey)
      Builds a new sportdataapi.com client (no debugging).
      Parameters:
      apiKey - - the API key
      Returns:
      the client
    • newClient

      public static SdaClient newClient​(java.lang.String apiKey, boolean isDebug)
      Builds a new sportdataapi.com client.
      Parameters:
      apiKey - - the API key
      isDebug - - 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 key
      config - - Jersey client config
      Returns:
      the client