public final class JFPServerAdminHTTPConfigFromProperties extends Object implements JFPServerAdminHTTPConfigType
Modifier and Type | Method and Description |
---|---|
static JFPServerAdminHTTPConfigType |
fromProperties(Properties p)
Load configuration data from the given properties.
|
static com.io7m.jfunctional.OptionType<JFPServerAdminHTTPConfigType> |
fromPropertiesOptional(Properties p)
Load (optional) configuration data from the given properties.
|
InetSocketAddress |
getAddress() |
public static JFPServerAdminHTTPConfigType 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<JFPServerAdminHTTPConfigType> 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 JFPServerAdminHTTPConfigType
Copyright © 2015 <code@io7m.com> http://io7m.com