public class ServiceSettings extends Object
| Constructor and Description |
|---|
ServiceSettings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getMNSAccessKeyId()
Deprecated.
该方案不再推荐使用,请使用非硬编码形式:https://help.aliyun.com/zh/sdk/developer-reference/ak-security-scheme?#faa5f4905bxkr
|
static String |
getMNSAccessKeySecret()
Deprecated.
该方案不再推荐使用,请使用非硬编码形式:https://help.aliyun.com/zh/sdk/developer-reference/ak-security-scheme?#faa5f4905bxkr
|
static String |
getMNSAccountEndpoint() |
static String |
getMNSPropertyValue(String propertyKey,
String defaultValue)
获得指定 key 的 配置值
|
static String |
getMNSSecurityToken() |
static void |
load()
Load settings from the configuration file.
|
static void |
load(String configFile)
Load settings from a given configuration file.
|
static void |
setMNSAccessKeyId(String accessKeyId)
Deprecated.
该方案不再推荐使用,请使用非硬编码形式:https://help.aliyun.com/zh/sdk/developer-reference/ak-security-scheme?#faa5f4905bxkr
|
static void |
setMNSAccessKeySecret(String accessKeySecret)
Deprecated.
该方案不再推荐使用,请使用非硬编码形式:https://help.aliyun.com/zh/sdk/developer-reference/ak-security-scheme?#faa5f4905bxkr
|
static void |
setMNSAccountEndpoint(String accountEndpoint) |
static void |
setMNSSecurityToken(String securityToken) |
public static String getMNSAccountEndpoint()
public static void setMNSAccountEndpoint(String accountEndpoint)
public static String getMNSSecurityToken()
public static void setMNSSecurityToken(String securityToken)
public static String getMNSPropertyValue(String propertyKey, String defaultValue)
@Deprecated public static String getMNSAccessKeyId()
@Deprecated public static void setMNSAccessKeyId(String accessKeyId)
@Deprecated public static String getMNSAccessKeySecret()
@Deprecated public static void setMNSAccessKeySecret(String accessKeySecret)
public static void load()
The configuration format: mns.endpoint= mns.accesskeyid= mns.accesskeysecret= proxy.host= proxy.port=
public static void load(String configFile)
configFile - configuration file nameCopyright © 2024. All Rights Reserved.