Package org.bedework.timezones.common
Class TzConfigImpl
java.lang.Object
org.bedework.util.config.ConfigBase<TzConfigImpl>
org.bedework.timezones.common.TzConfigImpl
- All Implemented Interfaces:
Serializable,Comparable<TzConfigImpl>,TzConfig,org.bedework.util.logging.Logged
public class TzConfigImpl
extends org.bedework.util.config.ConfigBase<TzConfigImpl>
implements TzConfig
This class defines the various properties we need for a carddav server
- Author:
- Mike Douglass
- See Also:
-
Field Summary
Fields inherited from class org.bedework.util.config.ConfigBase
ns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit copy of the configLocation of the db data.booleanAre we a primary server?Url for the primary server.longRefresh delay - secondsLocation of the (backup) zip file.voidLocation of the db data.voidsetDtstamp(String val) voidsetPrimaryServer(boolean val) Are we a primary server?voidsetPrimaryUrl(String val) Url for the primary server.voidsetRefreshDelay(long val) Refresh delay - secondsvoidvoidsetTzdataUrl(String val) Location of the (backup) zip file.voidsetVersion(String val) voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilderMethods inherited from class org.bedework.util.config.ConfigBase
addListProperty, compareTo, fromXml, fromXml, fromXml, getLastChanged, getLogger, getName, getProperty, hashCode, markChanged, removeProperty, setListProperty, setName, toProperties, toString, toXmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
TzConfigImpl
public TzConfigImpl()
-
-
Method Details
-
setDtstamp
- Specified by:
setDtstampin interfaceTzConfig- Parameters:
val- the dtstamp
-
getDtstamp
- Specified by:
getDtstampin interfaceTzConfig- Returns:
- String XML format dtstamp
-
setVersion
- Specified by:
setVersionin interfaceTzConfig- Parameters:
val- version
-
getVersion
- Specified by:
getVersionin interfaceTzConfig- Returns:
- String version
-
setPrimaryUrl
Url for the primary server.- Specified by:
setPrimaryUrlin interfaceTzConfig- Parameters:
val- String
-
getPrimaryUrl
Url for the primary server.- Specified by:
getPrimaryUrlin interfaceTzConfig- Returns:
- String, null for unset
-
setPrimaryServer
public void setPrimaryServer(boolean val) Are we a primary server?- Specified by:
setPrimaryServerin interfaceTzConfig- Parameters:
val- boolean
-
getPrimaryServer
public boolean getPrimaryServer()Are we a primary server?- Specified by:
getPrimaryServerin interfaceTzConfig- Returns:
- boolean
-
setSource
-
getSource
-
setTzdataUrl
Location of the (backup) zip file.- Specified by:
setTzdataUrlin interfaceTzConfig- Parameters:
val- String
-
getTzdataUrl
Location of the (backup) zip file.- Specified by:
getTzdataUrlin interfaceTzConfig- Returns:
- String, null for unset
-
setDbPath
Location of the db data. -
getDbPath
Location of the db data. -
setRefreshDelay
public void setRefreshDelay(long val) Refresh delay - seconds- Specified by:
setRefreshDelayin interfaceTzConfig- Parameters:
val- delay
-
getRefreshDelay
public long getRefreshDelay()Refresh delay - seconds- Specified by:
getRefreshDelayin interfaceTzConfig- Returns:
- long refreshDelay
-
toStringSegment
public void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilder- Overrides:
toStringSegmentin classorg.bedework.util.config.ConfigBase<TzConfigImpl>- Parameters:
ts- ToString for result
-
copyTo
init copy of the config- Parameters:
newConf- other config
-