public class Client extends Observable
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).
Modifier and Type | Field and Description |
---|---|
static String |
CDM_ACCEPT_CHARSET |
static String |
CDM_DEFAULT_CHARSET |
static String |
CDM_DEFAULT_CLIENT_TYPE |
static String |
CDM_DEFAULT_CONTENT_TYPE
Default content type for unidentified client type.
|
static String |
CHARSET_ALIAS_ATTR |
static String |
DEFAULT_CHARSET_PROPERTY |
static String |
G11N_SETTINGS_SERVICE_NAME |
static String |
JAVA_CHARSET_NAME |
static String |
LOCALE_CHARSET_ATTR |
Constructor and Description |
---|
Client() |
Client(String clientType,
Map data) |
Modifier and Type | Method and Description |
---|---|
Set |
getAdditionalProperties()
used by the console plug-in (only) to get the additional properties.
|
static Iterator |
getAllInstances()
Deprecated.
Use ClientsManager#getAllInstances()
|
protected static Iterator |
getAllInstances(SSOToken token)
Deprecated.
Use ClientsManager#getAllInstances()
|
String |
getCharset(Locale loc) |
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(String clientType)
Deprecated.
Use ClientsManager#getInstance(String)
|
protected static Client |
getInstance(String clientType,
SSOToken token)
Deprecated.
Use ClientsManager#getInstance(String)
|
Set |
getProperties(String name)
Gets the client property for the specified key.
|
String |
getProperty(String name)
Gets the client property for the specified key.
|
Set |
getPropertyNames()
Returns a set of property names for this client data instance.
|
protected Set |
separateAdditionalProperties(Map m)
Removes the "additionalProperties" element from the Map, adds each of
them to the Map with name and value (parsed with "=") and returns the
values of the "additionalProperties in the Set.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String G11N_SETTINGS_SERVICE_NAME
public static final String LOCALE_CHARSET_ATTR
public static final String CHARSET_ALIAS_ATTR
public static final String JAVA_CHARSET_NAME
public static final String CDM_ACCEPT_CHARSET
public static final String DEFAULT_CHARSET_PROPERTY
public static final String CDM_DEFAULT_CHARSET
public static final String CDM_DEFAULT_CLIENT_TYPE
public static final String CDM_DEFAULT_CONTENT_TYPE
public static Client getInstance(String clientType) throws ClientException
clientType
- Client Type.ClientException
- if specified client type is null or not definedprotected static Client getInstance(String clientType, SSOToken token) throws ClientException
clientType
- Client typetoken
- SSO Token of the callerClientException
- if client type is null or not definedpublic static Client getDefaultInstance()
public static Iterator getAllInstances()
protected static Iterator getAllInstances(SSOToken token)
token
- The user's SSO tokenpublic String getClientType()
public String getProperty(String name)
name
- The key for the client property to be returned.public Set getProperties(String name)
name
- The key for the client property to be returned.public Set getPropertyNames()
public Set getAdditionalProperties()
protected Set separateAdditionalProperties(Map m)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.