public enum EUrlServer extends Enum<EUrlServer>
Enum Constant and Description |
---|
api
通用域名(api.weixin.qq.com),使用该域名将访问官方指定就近的接入点;
|
hk
香港域名(hk.api.weixin.qq.com),使用该域名将访问香港的接入点。
|
sh
上海域名(sh.api.weixin.qq.com),使用该域名将访问上海的接入点;
|
sz
深圳域名(sz.api.weixin.qq.com),使用该域名将访问深圳的接入点;
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static EUrlServer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EUrlServer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EUrlServer api
public static final EUrlServer sh
public static final EUrlServer sz
public static final EUrlServer hk
public static EUrlServer[] values()
for (EUrlServer c : EUrlServer.values()) System.out.println(c);
public static EUrlServer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<EUrlServer>
Copyright © 2020. All rights reserved.