public enum InboundEmailProtocol extends Enum<InboundEmailProtocol>
| Enum Constant and Description |
|---|
IMAP
Not encrypted IMAP protocol.
|
IMAP_OVER_TLS
IMAP protocol encrypted using TLS.
|
IMAPS
IMAP protocol encrypted using SSL.
|
POP3
Not encrypted POP3 protocol.
|
POP3_OVER_TLS
POP3 protocol encrypted using TLS.
|
POP3S
POP3 protocol encrypted using SSL.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultPort()
Gets default port that is used for this protocol.
|
String |
getProtocolName()
Gets the name of this protocol.
|
static InboundEmailProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InboundEmailProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InboundEmailProtocol POP3
The port number used by default: 110.
public static final InboundEmailProtocol POP3_OVER_TLS
The port number used by default: 995.
public static final InboundEmailProtocol POP3S
The port number used by default: 995.
public static final InboundEmailProtocol IMAP
The port number used by default: 143.
public static final InboundEmailProtocol IMAP_OVER_TLS
The port number used by default: 993.
public static final InboundEmailProtocol IMAPS
The port number used by default: 993.
public static InboundEmailProtocol[] values()
for (InboundEmailProtocol c : InboundEmailProtocol.values()) System.out.println(c);
public static InboundEmailProtocol 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 getDefaultPort()
public String getProtocolName()
Copyright © 2023. All rights reserved.