Configuration Class
- java.
lang. Object - com.
microsoft. store. partnercenter. configuration. Configuration
- com.
public class Configuration
A configuration holder that keeps a map of APIs and some default configuration values
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Configuration() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.Map<java.lang.String,Api> |
getApis()
Gets the available APIs. |
| int |
getDefaultAuthenticationTokenExpiryBufferInSeconds()
Gets the default authentication token expiry buffer in seconds. |
| java.lang.String |
getDefaultLocale()
Gets the default locale. |
| int |
getDefaultMaxRetryAttempts()
Gets the default max retry attempts. |
| java.lang.String |
getPartnerCenterClient()
Gets or sets the Partner Center client name. |
| java.lang.String |
getPartnerServiceApiRoot()
Gets the partner service API root. |
| java.lang.String |
getPartnerServiceApiVersion()
Gets the partner service API version. |
| java.lang.String |
getSdkVersion()
Gets the SDK version. |
| void |
setDefaultAuthenticationTokenExpiryBufferInSeconds(int value)
Sets the default authentication token expiry buffer in seconds. |
| void |
setDefaultLocale(String value)
Sets the default locale. |
| void |
setDefaultMaxRetryAttempts(int value)
Sets the default max retry attempts. |
| void |
setPartnerServiceApiRoot(String value)
The partner service API root. |
| void |
setPartnerServiceApiVersion(String value)
Sets the partner service API version. |
Inherited Members
Constructor Details
Configuration
public Configuration()
Method Details
getApis
public Map
Gets the available APIs.
Returns:
getDefaultAuthenticationTokenExpiryBufferInSeconds
public int getDefaultAuthenticationTokenExpiryBufferInSeconds()
Gets the default authentication token expiry buffer in seconds.
Returns:
getDefaultLocale
public String getDefaultLocale()
Gets the default locale.
Returns:
getDefaultMaxRetryAttempts
public int getDefaultMaxRetryAttempts()
Gets the default max retry attempts.
Returns:
getPartnerCenterClient
public String getPartnerCenterClient()
Gets or sets the Partner Center client name.
Returns:
getPartnerServiceApiRoot
public String getPartnerServiceApiRoot()
Gets the partner service API root.
Returns:
getPartnerServiceApiVersion
public String getPartnerServiceApiVersion()
Gets the partner service API version.
Returns:
getSdkVersion
public String getSdkVersion()
Gets the SDK version.
Returns:
setDefaultAuthenticationTokenExpiryBufferInSeconds
public void setDefaultAuthenticationTokenExpiryBufferInSeconds(int value)
Sets the default authentication token expiry buffer in seconds.
Parameters:
setDefaultLocale
public void setDefaultLocale(String value)
Sets the default locale.
Parameters:
setDefaultMaxRetryAttempts
public void setDefaultMaxRetryAttempts(int value)
Sets the default max retry attempts.
Parameters:
setPartnerServiceApiRoot
public void setPartnerServiceApiRoot(String value)
The partner service API root.
Parameters:
setPartnerServiceApiVersion
public void setPartnerServiceApiVersion(String value)
Sets the partner service API version.
Parameters: