com.funambol.syncml.spds
Class SyncConfig

java.lang.Object
  extended by com.funambol.syncml.spds.SyncConfig

public class SyncConfig
extends java.lang.Object

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


Field Summary
 java.lang.String clientNonce
          The nonce used for client authentication
 boolean compress
          Communications with server compressed or not
 DeviceConfig deviceConfig
          Devinfo
 boolean forceCookies
           
 java.lang.String lastServerUrl
          to contain the value of lastSyncUrl from SyncmlMPIConfig
static java.lang.String NAME
           
 java.lang.String password
           
 java.lang.String preferredAuthType
           
 java.lang.String[] supportedAuthTypes
          The list of supported authentication types
 java.lang.String syncUrl
          Account Connection params
 java.lang.String userAgent
           
 java.lang.String userName
           
protected static int VERSION
          This field contains the version of the configuration data
protected static int VERSION_600
           
protected static int VERSION_850
           
 
Constructor Summary
SyncConfig()
          Creates a new instance of SyncConfig: Sets default configuration values
 
Method Summary
 boolean allowBasicAuthentication()
           
 boolean allowMD5Authentication()
           
 void deserialize(java.io.DataInputStream in)
          Read object field from the input stream.
 DeviceConfig getDeviceConfig()
           
 java.lang.String getPassword()
           
 java.lang.String getSyncUrl()
           
 java.lang.String getUserName()
           
 long getVersion()
           
 void serialize(java.io.DataOutputStream out)
          Write object fields to the output stream.
 void setPassword(java.lang.String password)
           
 void setSyncUrl(java.lang.String syncUrl)
           
 void setUserName(java.lang.String userName)
           
 
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_600

protected static final int VERSION_600
See Also:
Constant Field Values

VERSION_850

protected static final int VERSION_850
See Also:
Constant Field Values

VERSION

protected static final int VERSION
This field contains the version of the configuration data

See Also:
Constant Field Values

syncUrl

public java.lang.String syncUrl
Account Connection params


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
Devinfo


lastServerUrl

public java.lang.String lastServerUrl
to contain the value of lastSyncUrl from SyncmlMPIConfig


compress

public boolean compress
Communications with server compressed or not


clientNonce

public java.lang.String clientNonce
The nonce used for client authentication


supportedAuthTypes

public java.lang.String[] supportedAuthTypes
The list of supported authentication types


preferredAuthType

public java.lang.String preferredAuthType
Constructor Detail

SyncConfig

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

Method Detail

getVersion

public long getVersion()
Returns:
the configuration version

serialize

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

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.

Parameters:
in - Input stream
Throws:
java.io.IOException

allowBasicAuthentication

public boolean allowBasicAuthentication()

allowMD5Authentication

public boolean allowMD5Authentication()

getSyncUrl

public java.lang.String getSyncUrl()

setSyncUrl

public void setSyncUrl(java.lang.String syncUrl)

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getDeviceConfig

public DeviceConfig getDeviceConfig()


Copyright © 2001-2009 Funambol.