public abstract class A_CmsClientMessageBundle extends java.lang.Object implements I_CmsClientMessageBundle
Intended only for test cases.
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
IMPORT_PREFIX
Prefix for imported message values.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
A_CmsClientMessageBundle()
Hides the public constructor for this utility class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
export(javax.servlet.http.HttpServletRequest request)
Returns the JSON code for this resource bundle and the default locale.
|
java.lang.String |
export(java.util.Locale locale)
Returns the JSON code for this resource bundle and given locale.
|
java.lang.String |
export(java.lang.String localeName)
Returns the JSON code for this resource bundle and given locale.
|
java.lang.String |
getBundleName()
Returns the bundle name for this OpenCms package.
|
java.lang.Class<?> |
getClientImpl()
Returns the class of the client implementation.
|
java.lang.String |
importMessage(java.lang.String key,
java.util.Locale locale)
Imports a message from another bundle.
|
public static final java.lang.String IMPORT_PREFIX
protected A_CmsClientMessageBundle()
public java.lang.String export(javax.servlet.http.HttpServletRequest request)
I_CmsClientMessageBundleexport 在接口中 I_CmsClientMessageBundlerequest - the current request to get the default locale fromI_CmsClientMessageBundle.export(javax.servlet.http.HttpServletRequest)public java.lang.String export(java.util.Locale locale)
I_CmsClientMessageBundleexport 在接口中 I_CmsClientMessageBundlelocale - the locale to exportI_CmsClientMessageBundle.export(java.util.Locale)public java.lang.String export(java.lang.String localeName)
I_CmsClientMessageBundleexport 在接口中 I_CmsClientMessageBundlelocaleName - the name of the locale to exportI_CmsClientMessageBundle.export(java.lang.String)public java.lang.String getBundleName()
I_CmsClientMessageBundlegetBundleName 在接口中 I_CmsClientMessageBundleI_CmsClientMessageBundle.getBundleName()public java.lang.Class<?> getClientImpl()
throws java.lang.Exception
I_CmsClientMessageBundlegetClientImpl 在接口中 I_CmsClientMessageBundlejava.lang.Exception - if something goes wrongI_CmsClientMessageBundle.getClientImpl()public java.lang.String importMessage(java.lang.String key,
java.util.Locale locale)
key - a key of the form classname#MESSAGE_FIELD_NAMElocale - the locale for which to import the message