public abstract class A_CmsClientMessageBundle extends java.lang.Object implements I_CmsClientMessageBundle
Intended only for test cases.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IMPORT_PREFIX
Prefix for imported message values.
|
Modifier | Constructor and Description |
---|---|
protected |
A_CmsClientMessageBundle()
Hides the public constructor for this utility class.
|
Modifier and Type | Method and Description |
---|---|
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.util.Locale locale,
boolean wrapScript)
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_CmsClientMessageBundle
export
in interface I_CmsClientMessageBundle
request
- 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_CmsClientMessageBundle
export
in interface I_CmsClientMessageBundle
locale
- the locale to exportI_CmsClientMessageBundle.export(java.util.Locale)
public java.lang.String export(java.util.Locale locale, boolean wrapScript)
I_CmsClientMessageBundle
export
in interface I_CmsClientMessageBundle
locale
- the locale to exportwrapScript
- true
to wrap the data in a script tagI_CmsClientMessageBundle.export(java.util.Locale, boolean)
public java.lang.String export(java.lang.String localeName)
I_CmsClientMessageBundle
export
in interface I_CmsClientMessageBundle
localeName
- the name of the locale to exportI_CmsClientMessageBundle.export(java.lang.String)
public java.lang.String getBundleName()
I_CmsClientMessageBundle
getBundleName
in interface I_CmsClientMessageBundle
I_CmsClientMessageBundle.getBundleName()
public java.lang.Class<?> getClientImpl() throws java.lang.Exception
I_CmsClientMessageBundle
getClientImpl
in interface I_CmsClientMessageBundle
java.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