package com.sharefile.api.constants;

public class SFSDK 
{
	public static final String VERSION_FOR_QUERY_URL = "v3";
	public static final String VERSION= "V3.1.0";
	
	public static final String API_SERVER_TEST = "sf-apitest.com";
	public static final String API_SERVER_DEV = "sf-apidev.com";
	public static final String API_SERVER_PRODUCTION = "sf-api.com";
		
	public static final String[] mApiServer = {API_SERVER_PRODUCTION, API_SERVER_DEV,API_SERVER_TEST};
		
	private static final int HOST_INDEX_PRODUCTION = 0;
	private static final int HOST_INDEX_DEV 		  = 1;
	private static final int HOST_INDEX_TEST 	  = 2;
		
	public static final int getHostIndex(final String hostName)
	{
		int index = HOST_INDEX_PRODUCTION;
		
		if(hostName.endsWith("dev.com"))
		{
			index = HOST_INDEX_DEV;
		}
		else if(hostName.endsWith("test.com"))
		{
			index = HOST_INDEX_TEST;
		}
		
		return index;
	}
	
	public static final String getApiServer(String hostname)
	{
		return mApiServer[getHostIndex(hostname)];
	}
	
	public static final int INTERNAL_HTTP_ERROR = 599; //last http error code i s 505. Lets start our internal errors by leaving some difference.
}
@@ -352,16 +352,84 @@
 i.com%22;%0A
+%09public static final String API_SERVER_PRODUCTION_EU = %22sf-api.eu%22;%0A
 %09%09%0A%09publ
@@ -520,16 +520,41 @@
 VER_TEST
+,API_SERVER_PRODUCTION_EU
 %7D;%0A%09%09%0A%09p
@@ -704,16 +704,75 @@
 %09  = 2;%0A
+%09private static final int HOST_INDEX_PRODUCTION_EU %09  = 3;%0A
 %09%09%0A%09publ
@@ -977,32 +977,32 @@
 test.com%22))%0A%09%09%7B%0A
-
 %09%09%09index = HOST_
@@ -1017,16 +1017,97 @@
 ST;%0A%09%09%7D%0A
+%09%09else if(hostName.endsWith(%22.eu%22))%0A%09%09%7B%0A%09%09%09index = HOST_INDEX_PRODUCTION_EU;%0A%09%09%7D%0A
 %09%09%0A%09%09ret

Fix the issue with EU control planes.