public enum MailServerType extends Enum<MailServerType> implements MailServerProvider
Enum Constant and Description |
---|
CUSTOMER
自定义
|
QQ
QQ
|
WY163
网易
|
YD139
移动
|
Modifier and Type | Method and Description |
---|---|
String |
getHost()
获取服务主机
|
int |
getPort()
获取服务端口
|
static MailServerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MailServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailServerType WY163
public static final MailServerType QQ
public static final MailServerType YD139
public static final MailServerType CUSTOMER
public static MailServerType[] values()
for (MailServerType c : MailServerType.values()) System.out.println(c);
public static MailServerType 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 getHost()
MailServerProvider
getHost
in interface MailServerProvider
public int getPort()
MailServerProvider
getPort
in interface MailServerProvider
Copyright © 2024. All rights reserved.