OSDN Git Service

add native control in AccessToken class
[bytom/bytom-java-sdk.git] / src / main / java / io / bytom / http / Client.java
index fc84d02..3dda915 100644 (file)
@@ -37,7 +37,6 @@ import java.util.concurrent.atomic.AtomicInteger;
  */
 public class Client {
     private String url;
-    private AtomicInteger urlIndex;
     private String accessToken;
     private OkHttpClient httpClient;
 
@@ -59,7 +58,6 @@ public class Client {
     }
 
     public Client(Builder builder) throws ConfigurationException {
-        this.urlIndex = new AtomicInteger(0);
         this.url = builder.url;
         this.accessToken = builder.accessToken;
         this.httpClient = buildHttpClient(builder);
@@ -265,6 +263,10 @@ public class Client {
         return accessToken;
     }
 
+    public String getUrl() {
+        return url;
+    }
+
     /**
      * Pins a public key to the HTTP client.
      *