public class Messages extends Messages
Messages class
Class used to render templates along with specific values
Also used to get messages for specific Locales
Messages.BundleKey, Messages.MessageKey, Messages.ResourceKey
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BUNDLE_NAME |
static String |
DEFAULT_PATH_NAME |
bundleSet, messageSet, resourceSet
Modifier | Constructor and Description |
---|---|
protected |
Messages()
Constructor - do no instantiate
|
Modifier and Type | Method and Description |
---|---|
static String |
getAttributeJavascriptString(Locale locale,
String messageKey) |
static String |
getAttributeJavascriptString(Locale locale,
String messageKey,
Object[] args) |
static String |
getAttributeJavascriptString(String bundleName,
Locale locale,
String messageKey,
Object[] args) |
static String |
getAttributeString(Locale locale,
String messageKey) |
static String |
getAttributeString(Locale locale,
String messageKey,
Object[] args) |
static String |
getAttributeString(String bundleName,
Locale locale,
String messageKey,
Object[] args) |
static String |
getBodyJavascriptString(Locale locale,
String messageKey) |
static String |
getBodyJavascriptString(Locale locale,
String messageKey,
Object[] args) |
static String |
getBodyJavascriptString(String bundleName,
Locale locale,
String messageKey,
Object[] args) |
static String |
getBodyString(Locale locale,
String messageKey) |
static String |
getBodyString(Locale locale,
String messageKey,
Object[] args) |
static String |
getBodyString(String bundleName,
Locale locale,
String messageKey,
Object[] args) |
static String |
getString(Locale locale,
String messageKey) |
static String |
getString(Locale locale,
String messageKey,
Object[] args) |
static String |
getString(String bundleName,
Locale locale,
String messageKey,
Object[] args) |
static void |
outputResource(IHTTPOutput output,
Locale locale,
String resourceKey,
Map<String,String> substitutionParameters,
boolean mapToUpperCase) |
static void |
outputResourceWithVelocity(IHTTPOutput output,
Locale locale,
String resourceKey,
Map<String,Object> contextObjects) |
static void |
outputResourceWithVelocity(IHTTPOutput output,
Locale locale,
String resourceKey,
Map<String,String> substitutionParameters,
boolean mapToUpperCase) |
getAttributeJavascriptString, getAttributeString, getBodyJavascriptString, getBodyString, outputResource, outputResourceWithVelocity, outputResourceWithVelocity
complainMissingBundle, complainMissingMessage, complainMissingResource, createVelocityEngine, getMessage, getMessage, getResourceAsStream, getResourceBundle, getString, getString, getString, logError
public static final String DEFAULT_BUNDLE_NAME
public static final String DEFAULT_PATH_NAME
public static String getAttributeJavascriptString(Locale locale, String messageKey)
public static String getBodyJavascriptString(Locale locale, String messageKey)
public static String getAttributeString(Locale locale, String messageKey, Object[] args)
public static String getAttributeJavascriptString(Locale locale, String messageKey, Object[] args)
public static String getBodyJavascriptString(Locale locale, String messageKey, Object[] args)
public static String getString(String bundleName, Locale locale, String messageKey, Object[] args)
public static String getAttributeString(String bundleName, Locale locale, String messageKey, Object[] args)
public static String getBodyString(String bundleName, Locale locale, String messageKey, Object[] args)
public static String getAttributeJavascriptString(String bundleName, Locale locale, String messageKey, Object[] args)
public static String getBodyJavascriptString(String bundleName, Locale locale, String messageKey, Object[] args)
public static void outputResource(IHTTPOutput output, Locale locale, String resourceKey, Map<String,String> substitutionParameters, boolean mapToUpperCase) throws ManifoldCFException
ManifoldCFException
public static void outputResourceWithVelocity(IHTTPOutput output, Locale locale, String resourceKey, Map<String,String> substitutionParameters, boolean mapToUpperCase) throws ManifoldCFException
ManifoldCFException
public static void outputResourceWithVelocity(IHTTPOutput output, Locale locale, String resourceKey, Map<String,Object> contextObjects) throws ManifoldCFException
ManifoldCFException