com.iplanet.services.cdm
Class Client

java.lang.Object
  |
  +--java.util.Observable
        |
        +--com.iplanet.services.cdm.Client
All Implemented Interfaces:
com.iplanet.services.cdm.ICDMConstants

public class Client
extends java.util.Observable
implements com.iplanet.services.cdm.ICDMConstants

Provides common access to client data.

Client data is accessed for a particular client type. The underlying client data is stored in the profile service, but this interface should always used for accessing it (not by accessing the profile directly).


Field Summary
static java.lang.String CDM_ACCEPT_CHARSET
           
static java.lang.String CDM_DEFAULT_CHARSET
           
static java.lang.String CHARSET_ALIAS_ATTR
           
static java.lang.String G11N_SETTINGS_SERVICE_NAME
           
static java.lang.String JAVA_CHARSET_NAME
           
static java.lang.String LOCALE_CHARSET_ATTR
           
 
Method Summary
static java.util.Iterator getAllInstances()
          Deprecated. Use ClientsManager#getAllInstances()
 java.lang.String getClientType()
          Gets the name of the client type for the data in this client instance.
static Client getDefaultInstance()
          Deprecated. Use ClientsManager#getDefaultInstance()
static Client getInstance(java.lang.String clientType)
          Deprecated. Use ClientsManager#getInstance(String)
 java.util.Set getProperties(java.lang.String name)
          Gets the client property for the specified key.
 java.lang.String getProperty(java.lang.String name)
          Gets the client property for the specified key.
 java.util.Set getPropertyNames()
          Returns a set of property names for this client data instance.
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

G11N_SETTINGS_SERVICE_NAME

public static final java.lang.String G11N_SETTINGS_SERVICE_NAME

LOCALE_CHARSET_ATTR

public static final java.lang.String LOCALE_CHARSET_ATTR

CHARSET_ALIAS_ATTR

public static final java.lang.String CHARSET_ALIAS_ATTR

JAVA_CHARSET_NAME

public static final java.lang.String JAVA_CHARSET_NAME

CDM_ACCEPT_CHARSET

public static final java.lang.String CDM_ACCEPT_CHARSET

CDM_DEFAULT_CHARSET

public static final java.lang.String CDM_DEFAULT_CHARSET
Method Detail

getInstance

public static Client getInstance(java.lang.String clientType)
                          throws ClientException
Deprecated. Use ClientsManager#getInstance(String)

Get Client instance for a specific client type .
Parameters:
clientType - Client Type.
Returns:
Requested Client instance.
Throws:
ClientException - if specified client type is null or not defined

getDefaultInstance

public static Client getDefaultInstance()
Deprecated. Use ClientsManager#getDefaultInstance()

Returns a Client instance for the default client type
Returns:
The Client instance corresponding to the default client type

getAllInstances

public static java.util.Iterator getAllInstances()
Deprecated. Use ClientsManager#getAllInstances()

Returns an iterator of Client objects for all known client types.
Returns:
Iterator of Client objects

getClientType

public java.lang.String getClientType()
Gets the name of the client type for the data in this client instance.
Returns:
Name of the client type

getProperty

public java.lang.String getProperty(java.lang.String name)
Gets the client property for the specified key.
Parameters:
name - The key for the client property to be returned.
Returns:
The client property.

getProperties

public java.util.Set getProperties(java.lang.String name)
Gets the client property for the specified key.
Parameters:
name - The key for the client property to be returned.
Returns:
The set of client property values.

getPropertyNames

public java.util.Set getPropertyNames()
Returns a set of property names for this client data instance.
Returns:
The set of property names for this client data instance.