public final class JFPMailConfig extends Object
Modifier and Type | Method and Description |
---|---|
static com.io7m.jfunctional.OptionType<JFPMailConfig> |
fromPropertiesOptional(Properties p)
Load (optional) configuration data from the given properties.
|
static JFPMailConfig |
fromStream(InputStream stream)
Load configuration data from the given stream.
|
static com.io7m.jfunctional.OptionType<JFPMailConfig> |
fromStreamOptional(InputStream stream)
Load (optional) configuration data from the given stream.
|
javax.mail.internet.InternetAddress |
getRecipient() |
javax.mail.internet.InternetAddress |
getSender() |
String |
getServer() |
com.io7m.jfunctional.OptionType<com.io7m.jfunctional.Pair<String,String>> |
getServerAuthentication() |
public static com.io7m.jfunctional.OptionType<JFPMailConfig> fromPropertiesOptional(Properties p) throws com.io7m.jproperties.JPropertyNonexistent, com.io7m.jproperties.JPropertyIncorrectType, javax.mail.internet.AddressException
p
- The properties.com.io7m.jproperties.JPropertyNonexistent
- On malformed properties.com.io7m.jproperties.JPropertyIncorrectType
- On malformed properties.javax.mail.internet.AddressException
- On invalid email addresses.public static JFPMailConfig fromStream(InputStream stream) throws IOException, com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
stream
- The streamIOException
- On I/O errorscom.io7m.jproperties.JPropertyException
- On malformed config filesJFPExceptionInvalidArgument
- On invalid argumentsjavax.mail.internet.AddressException
- On malformed email addresses.public static com.io7m.jfunctional.OptionType<JFPMailConfig> fromStreamOptional(InputStream stream) throws IOException, com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
stream
- The streamIOException
- On I/O errorscom.io7m.jproperties.JPropertyException
- On malformed config filesJFPExceptionInvalidArgument
- On invalid argumentsjavax.mail.internet.AddressException
- On invalid email addresses.public javax.mail.internet.InternetAddress getRecipient()
public javax.mail.internet.InternetAddress getSender()
public String getServer()
Copyright © 2015 <code@io7m.com> http://io7m.com