public final class JFPServerHTTPConfigFromProperties extends Object implements JFPServerHTTPConfigType
Modifier and Type | Method and Description |
---|---|
static JFPServerHTTPConfigType |
fromProperties(Properties p)
Load configuration data from the given properties.
|
static com.io7m.jfunctional.OptionType<JFPServerHTTPConfigType> |
fromPropertiesOptional(Properties p)
Load (optional) configuration data from the given properties.
|
InetSocketAddress |
getAddress() |
public static JFPServerHTTPConfigType fromProperties(Properties p) throws com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
p
- The propertiescom.io7m.jproperties.JPropertyException
- On malformed config files.JFPExceptionInvalidArgument
- On invalid arguments.javax.mail.internet.AddressException
- On invalid email addresses.public static com.io7m.jfunctional.OptionType<JFPServerHTTPConfigType> fromPropertiesOptional(Properties p) throws com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
p
- The propertiescom.io7m.jproperties.JPropertyException
- On malformed config files.JFPExceptionInvalidArgument
- On invalid arguments.javax.mail.internet.AddressException
- On invalid email addresses.public InetSocketAddress getAddress()
getAddress
in interface JFPServerHTTPConfigType
Copyright © 2015 <code@io7m.com> http://io7m.com