com.funambol.syncml.spds
Class SyncConfig

java.lang.Object
  extended by com.funambol.syncml.spds.SyncConfig
All Implemented Interfaces:
com.funambol.storage.Serializable

public class SyncConfig
extends java.lang.Object
implements com.funambol.storage.Serializable

Configuration data for the SyncManager: account, polling time etc. TODO: remove Serializable?


Field Summary
 boolean compress
           
 DeviceConfig deviceConfig
           
 boolean forceCookies
           
 java.lang.String lastServerUrl
           
static java.lang.String NAME
           
 java.lang.String password
           
 java.lang.String syncUrl
           
 java.lang.String userAgent
           
 java.lang.String userName
           
protected static int VERSION
           
 
Constructor Summary
SyncConfig()
          Creates a new instance of SyncConfig: Sets default configuration values
 
Method Summary
 void deserialize(java.io.DataInputStream in)
          Read object field from the input stream.
 long getVersion()
          Get the configuration version
 void serialize(java.io.DataOutputStream out)
          Write object fields to the output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

VERSION

protected static final int VERSION
See Also:
Constant Field Values

syncUrl

public java.lang.String syncUrl

userName

public java.lang.String userName

password

public java.lang.String password

userAgent

public java.lang.String userAgent

forceCookies

public boolean forceCookies

deviceConfig

public DeviceConfig deviceConfig

lastServerUrl

public java.lang.String lastServerUrl

compress

public boolean compress
Constructor Detail

SyncConfig

public SyncConfig()
Creates a new instance of SyncConfig: Sets default configuration values

Throws:
RecordStoreException
java.io.IOException
Method Detail

getVersion

public long getVersion()
Get the configuration version


serialize

public void serialize(java.io.DataOutputStream out)
               throws java.io.IOException
Write object fields to the output stream.

Specified by:
serialize in interface com.funambol.storage.Serializable
Parameters:
out - Output stream
Throws:
java.io.IOException

deserialize

public void deserialize(java.io.DataInputStream in)
                 throws java.io.IOException
Read object field from the input stream.

Specified by:
deserialize in interface com.funambol.storage.Serializable
Parameters:
in - Input stream
Throws:
java.io.IOException


Copyright © 2006 Funambol.