@Immutable
public final class SphereClientConfig
extends java.lang.Object
SphereClient
.
To create a config, use
new SphereClientConfig.Builder("my-project", "my-clientId", "my-clientSecret").setApiMode(...).build()
Modifier and Type | Class and Description |
---|---|
static class |
SphereClientConfig.Builder |
Modifier and Type | Method and Description |
---|---|
ApiMode |
getApiMode()
Specifies whether staging or live data is accessed by the shop client.
|
java.lang.String |
getAuthHttpServiceUrl()
Sphere OAuth2 endpoint.
|
java.lang.String |
getClientId()
The unique client ID that, together with the client secret, authorizes the
shop client to access the underlying Sphere project.
|
java.lang.String |
getClientSecret()
The confidential client secret that, together with the client ID, authorizes the
shop client to access the underlying Sphere project.
|
java.lang.String |
getCoreHttpServiceUrl()
Sphere HTTP API endpoint.
|
java.util.Locale |
getDefaultLocale()
The default Locale for this project.
|
java.lang.String |
getProjectKey()
The key of the Sphere project accessed by this client.
|
static boolean |
isValidProjectKey(java.lang.String projectKey) |
java.lang.String |
toString() |
static void |
validateProjectKey(java.lang.String projectKey) |
public static boolean isValidProjectKey(java.lang.String projectKey)
public static void validateProjectKey(java.lang.String projectKey)
public java.lang.String getProjectKey()
public java.lang.String getClientId()
public java.lang.String getClientSecret()
public ApiMode getApiMode()
public java.lang.String getCoreHttpServiceUrl()
public java.lang.String getAuthHttpServiceUrl()
public java.util.Locale getDefaultLocale()
public java.lang.String toString()
toString
in class java.lang.Object