public class I18n extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BUNDLE_NAME |
| Constructor and Description |
|---|
I18n() |
| Modifier and Type | Method and Description |
|---|---|
static I18nBundle |
bundle(javax.servlet.http.HttpServletRequest req)
Get the default I18nBundle.
|
static I18nBundle |
bundle(String bundleName,
javax.servlet.http.HttpServletRequest req)
Get a I18nBundle by this name.
|
protected I18nBundle |
getBundle(String bundleName,
javax.servlet.http.HttpServletRequest req)
Get an I18nBundle by this name.
|
static String |
text(javax.servlet.http.HttpServletRequest req,
String key,
Object... parameters)
A convenience method to get the default bundle and format the text.
|
static String |
text(String bundleName,
javax.servlet.http.HttpServletRequest req,
String key,
Object... parameters)
A convenience method to get a bundle and format the text.
|
public static final String DEFAULT_BUNDLE_NAME
public static String text(String bundleName, javax.servlet.http.HttpServletRequest req, String key, Object... parameters)
public static String text(javax.servlet.http.HttpServletRequest req, String key, Object... parameters)
public static I18nBundle bundle(String bundleName, javax.servlet.http.HttpServletRequest req)
public static I18nBundle bundle(javax.servlet.http.HttpServletRequest req)
protected I18nBundle getBundle(String bundleName, javax.servlet.http.HttpServletRequest req)
Copyright © 2016. All rights reserved.