Package org.syncany.config.to
Class ConfigTO
- java.lang.Object
-
- org.syncany.config.to.ConfigTO
-
public class ConfigTO extends java.lang.Object
The config transfer object is used to create and load the local config file from/to XML. The config file contains local config settings of a client, namely the machine and display name, the master key as well as connection information (for the connection plugin).It uses the Simple framework for XML serialization, and its corresponding annotation-based configuration.
- See Also:
- Simple framework
-
-
Constructor Summary
Constructors Constructor Description ConfigTO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.LonggetCacheKeepBytes()java.lang.StringgetDisplayName()java.lang.StringgetMachineName()SaltedSecretKeygetMasterKey()TransferSettingsgetTransferSettings()static ConfigTOload(java.io.File file)voidsave(java.io.File file)voidsetCacheKeepBytes(java.lang.Long cacheKeepBytes)voidsetDisplayName(java.lang.String displayName)voidsetMachineName(java.lang.String machineName)voidsetMasterKey(SaltedSecretKey masterKey)voidsetTransferSettings(TransferSettings transferSettings)
-
-
-
Constructor Detail
-
ConfigTO
public ConfigTO()
-
-
Method Detail
-
load
public static ConfigTO load(java.io.File file) throws ConfigException
- Throws:
ConfigException
-
save
public void save(java.io.File file) throws ConfigException
- Throws:
ConfigException
-
getMachineName
public java.lang.String getMachineName()
-
setMachineName
public void setMachineName(java.lang.String machineName)
-
getDisplayName
public java.lang.String getDisplayName()
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
-
getTransferSettings
public TransferSettings getTransferSettings()
-
setTransferSettings
public void setTransferSettings(TransferSettings transferSettings)
-
getMasterKey
public SaltedSecretKey getMasterKey()
-
setMasterKey
public void setMasterKey(SaltedSecretKey masterKey)
-
getCacheKeepBytes
public java.lang.Long getCacheKeepBytes()
-
setCacheKeepBytes
public void setCacheKeepBytes(java.lang.Long cacheKeepBytes)
-
-