public class G11NSettings extends Object implements ServiceListener, AMClientDataListener
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 |
ADDED, MODIFIED, REMOVED
Modifier and Type | Method and Description |
---|---|
void |
clientChanged(String clientType,
int dbType,
int opType)
Called when a client-type data gets changed.
|
String |
getCharset(String clientType,
Locale loc) |
Map |
getCharsetAliasTable(String mimeCharset) |
List |
getCharsetForLocale(String loc) |
String |
getDefaultCharsetForLocale(Locale loc) |
static G11NSettings |
getInstance() |
String |
getJavaCharset(String mimeCharset) |
void |
globalConfigChanged(String serviceName,
String version,
String groupName,
String serviceComponent,
int type)
This method will be invoked when a service's global configuration data
has been changed.
|
void |
organizationConfigChanged(String serviceName,
String version,
String orgName,
String groupName,
String serviceComponent,
int type)
This method will be invoked when a service's organization configuration
data has been changed.
|
void |
schemaChanged(String serviceName,
String version)
This method will be invoked when a service's schema has been changed.
|
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 G11NSettings getInstance()
public String getDefaultCharsetForLocale(Locale loc)
public List getCharsetForLocale(String loc)
loc
- locale such as en, en_USpublic Map getCharsetAliasTable(String mimeCharset)
mimeCharset
- public String getJavaCharset(String mimeCharset)
mimeCharset
- public void schemaChanged(String serviceName, String version)
ServiceListener
schemaChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the servicepublic void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
ServiceListener
groupName
denote the name
of the configuration grouping (e.g. default) and
serviceComponent
denotes the service's sub-component that
changed (e.g. /NamedPolicy
, /Templates
).globalConfigChanged
in interface ServiceListener
serviceName
- name of the service.version
- version of the service.groupName
- name of the configuration grouping.serviceComponent
- name of the service components that changed.type
- change type, i.e., ADDED, REMOVED or MODIFIED.public void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)
ServiceListener
orgName
,
groupName
and serviceComponent
denotes the
organization name, configuration grouping name and service's
sub-component that are changed respectively.organizationConfigChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the serviceorgName
- organization name as DNgroupName
- name of the configuration groupingserviceComponent
- the name of the service components that changedtype
- change type, i.e., ADDED, REMOVED or MODIFIEDpublic String getCharset(String clientType, Locale loc) throws ClientException
clientType
- Client type identified by CDM moduleloc
- Locale such as en_US This method computes the
characterset to be used for any given clientType It uses
Ccpp-Accept-Charset of the ClientType and picks appropriate
charset for any given locale. CcppAccept-Charset list may have
Q factor to weigh the client preference of the charsetClientException
public void clientChanged(String clientType, int dbType, int opType)
AMClientDataListener
clientChanged
in interface AMClientDataListener
clientType
- The clientType that changed.dbType
- The database that contained the clientType
AMClientCapData.INTERNAL or AMClientCapData.EXTERNAL.opType
- The type of the change - AMClientCapData.ADDED OR
AMClientCapData.REMOVED OR AMClientCapData.MODIFIEDCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.