View Javadoc
1   package com.kodexa.client.remote;
2   
3   import lombok.Data;
4   
5   /**
6    * The configuration object (static) for the connection to Kodexa, it also provides a
7    * way to get the API client
8    */
9   @Data
10  public class KodexaPlatform {
11  
12      private static String accessToken = System.getenv("KODEXA_ACCESS_TOKEN");
13  
14      private static String url = System.getenv("KODEXA_URL") != null ? System.getenv("KODEXA_URL") : "https://platform.kodexa.com";
15  
16      public static String getAccessToken() {
17          return KodexaPlatform.accessToken;
18      }
19  
20      public static void setAccessToken(String accessToken) {
21          KodexaPlatform.accessToken = accessToken;
22      }
23  
24      public static String getUrl() {
25          return KodexaPlatform.url;
26      }
27  
28      public static void setUrl(String url) {
29          KodexaPlatform.url = url;
30      }
31  
32  }