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.Long
getCacheKeepBytes()
java.lang.String
getDisplayName()
java.lang.String
getMachineName()
SaltedSecretKey
getMasterKey()
TransferSettings
getTransferSettings()
static ConfigTO
load(java.io.File file)
void
save(java.io.File file)
void
setCacheKeepBytes(java.lang.Long cacheKeepBytes)
void
setDisplayName(java.lang.String displayName)
void
setMachineName(java.lang.String machineName)
void
setMasterKey(SaltedSecretKey masterKey)
void
setTransferSettings(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)
-
-