public final class JFPServerConfigFromProperties extends Object implements JFPServerConfigType
public static JFPServerConfigType fromFile(File file) throws IOException, com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
file
- The fileIOException
- On I/O errors.com.io7m.jproperties.JPropertyException
- On malformed config files.JFPExceptionInvalidArgument
- On malformed config files.javax.mail.internet.AddressException
- On invalid email addresses.public static JFPServerConfigType 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 JFPServerConfigType fromStream(InputStream stream) throws IOException, com.io7m.jproperties.JPropertyException, JFPExceptionInvalidArgument, javax.mail.internet.AddressException
stream
- The streamIOException
- On I/O errors.com.io7m.jproperties.JPropertyException
- On malformed config files.JFPExceptionInvalidArgument
- On invalid arguments.javax.mail.internet.AddressException
- On invalid email addresses.public String getAdminPassword()
getAdminPassword
in interface JFPServerConfigType
public JFPFossilExecutable getFossilExecutable()
getFossilExecutable
in interface JFPServerConfigType
public File getFossilRepositoryDirectory()
getFossilRepositoryDirectory
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPFossilUserName> getFossilUserName()
getFossilUserName
in interface JFPServerConfigType
public com.io7m.jlog.LogLevel getLogLevel()
getLogLevel
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPMailConfig> getMailConfiguration()
getMailConfiguration
in interface JFPServerConfigType
public File getServerDatabaseFile()
getServerDatabaseFile
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPServerHTTPConfigType> getServerHTTPConfig()
getServerHTTPConfig
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPServerHTTPSConfigType> getServerHTTPSConfig()
getServerHTTPSConfig
in interface JFPServerConfigType
public File getServerLogDirectory()
getServerLogDirectory
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPServerAdminHTTPConfigType> getServerManagementHTTPConfig()
getServerManagementHTTPConfig
in interface JFPServerConfigType
public com.io7m.jfunctional.OptionType<JFPServerAdminHTTPSConfigType> getServerManagementHTTPSConfig()
getServerManagementHTTPSConfig
in interface JFPServerConfigType
public boolean getServerMassSynchronizerEnabled()
getServerMassSynchronizerEnabled
in interface JFPServerConfigType
true
if the mass synchronizer should be started up.Copyright © 2015 <code@io7m.com> http://io7m.com