Module com.gluonhq.cloudlink.client
Class CloudLinkConfiguration
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.CloudLinkConfiguration
-
public class CloudLinkConfiguration extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CloudLinkConfiguration
get()
String
getApplicationKey()
String
getApplicationSecret()
String
getHost()
String
getHost​(String service)
Gets the name of the host that is used for connecting to Gluon CloudLink, appending the providedservice
.boolean
hasValidCredentials()
boolean
isConfigFileMissing()
void
validateCredentials()
-
-
-
Method Detail
-
get
public static CloudLinkConfiguration get()
-
getHost
public String getHost()
-
getHost
public String getHost​(String service)
Gets the name of the host that is used for connecting to Gluon CloudLink, appending the providedservice
.- Parameters:
service
- the string to append to the base host name.- Returns:
- the name of the host of Gluon CloudLink, appended with the provided
service
string. - Throws:
NullPointerException
- when theservice
parameter isnull
-
validateCredentials
public void validateCredentials()
-
hasValidCredentials
public boolean hasValidCredentials()
-
getApplicationKey
public String getApplicationKey()
-
getApplicationSecret
public String getApplicationSecret()
-
isConfigFileMissing
public boolean isConfigFileMissing()
-
-