Enum Class EmailReceiveConfig.Protocol
- All Implemented Interfaces:
Serializable, Comparable<EmailReceiveConfig.Protocol>, Constable
- Enclosing class:
EmailReceiveConfig
Email receiving protocol
邮件接收协议
- Since:
- JDK 25, opencode-base-email V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintGet default port 获取默认端口intGet default SSL port 获取默认SSL端口getName()Get protocol name 获取协议名称getStoreProtocol(boolean ssl) Get Jakarta Mail store protocol name 获取Jakarta Mail存储协议名称static EmailReceiveConfig.ProtocolReturns the enum constant of this class with the specified name.static EmailReceiveConfig.Protocol[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMAP
IMAP protocol (recommended) IMAP协议(推荐) -
POP3
POP3 protocol POP3协议
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
getDefaultPort
public int getDefaultPort()Get default port 获取默认端口- Returns:
- the default port | 默认端口
-
getDefaultSslPort
public int getDefaultSslPort()Get default SSL port 获取默认SSL端口- Returns:
- the default SSL port | 默认SSL端口
-
getStoreProtocol
Get Jakarta Mail store protocol name 获取Jakarta Mail存储协议名称- Parameters:
ssl- whether SSL is enabled | 是否启用SSL- Returns:
- the store protocol name | 存储协议名称
-