|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.protocol.DataObject
com.genesyslab.platform.commons.protocol.Message
com.genesyslab.platform.configuration.protocol.confserver.events.EventLocaleSets
public abstract class EventLocaleSets
Configuration Server response with information about configured localization sets.
It contains array with integer identifiers (LCID) of available LocaleSet's.
Usage sample:
Localization ID may be used to read locale configuration with
Message resp = confProtocol.request(RequestGetLocaleSets.create());
if (resp != null && resp.messageId() == EventLocaleSets.ID) {
int[] locales = ((EventLocaleSets) resp).getLocaleSets();
// do something using the LCID's list...
} else {
// handle error...
}
RequestReadLocale
or to initialize the configuration protocol metadata with particular localization configuration
using ConfServerProtocol.loadLocalization(Integer)
.
RequestGetLocaleSets
,
RequestReadLocale
,
CfgLanguageLCID
Field Summary | |
---|---|
static int |
ID
|
static java.lang.String |
NAME
|
Method Summary | |
---|---|
static EventLocaleSets |
create()
Creates instance of EventLocaleSets with no parameters set. |
static EventLocaleSets |
create(int[] localeSets)
Creates instance of EventLocaleSets with all parameters set. |
abstract int[] |
getLocaleSets()
IDs of Locale's configured on the Configuration Server |
abstract java.lang.Integer |
getReferenceId()
Reference ID to connect response to request. |
abstract void |
setLocaleSets(int[] localeSets)
IDs of Locale's configured on the Configuration Server |
abstract void |
setReferenceId(int referenceId)
Reference ID to connect response to request. |
abstract void |
setReferenceId(java.lang.Integer referenceId)
Reference ID to connect response to request. |
Methods inherited from class com.genesyslab.platform.commons.protocol.Message |
---|
cloneMessage, getEndpoint, getMessageAttribute, getProtocolDescription, getProtocolId, messageId, messageName, setProtocolDescription |
Methods inherited from class com.genesyslab.platform.commons.protocol.DataObject |
---|
equals, hashCode, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ID
public static final java.lang.String NAME
Method Detail |
---|
public static EventLocaleSets create()
public static EventLocaleSets create(int[] localeSets)
localeSets
- IDs of Locale's configured on the Configuration Server
public abstract java.lang.Integer getReferenceId()
public abstract void setReferenceId(java.lang.Integer referenceId)
public abstract void setReferenceId(int referenceId)
public abstract int[] getLocaleSets()
public abstract void setLocaleSets(int[] localeSets)
localeSets
- new value of the property
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |