public static enum Mailer.Protocol extends java.lang.Enum<Mailer.Protocol>
| Modifier and Type | Method and Description |
|---|---|
static Mailer.Protocol |
get(java.lang.String name) |
static Mailer.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mailer.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mailer.Protocol SMTP
public static final Mailer.Protocol SMTPS
public static final Mailer.Protocol TLS
public static final Mailer.Protocol POP3
public static final Mailer.Protocol IMAP
public static Mailer.Protocol[] values()
for (Mailer.Protocol c : Mailer.Protocol.values()) System.out.println(c);
public static Mailer.Protocol valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Mailer.Protocol get(java.lang.String name) throws javax.mail.internet.ParseException
javax.mail.internet.ParseExceptionCopyright © SAS Institute. All Rights Reserved.