@Override /* ConsoleCommand */ public String getInfo() { return mb.getString("info"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getExamples() { return mb.getString("examples"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getInfo() { return mb.getString("info"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getInfo() { return mb.getString("info"); }
@Override /* ConsoleCommand */ public String getExamples() { return mb.getString("examples"); }
@Override /* ConsoleCommand */ public String getInfo() { return mb.getString("info"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getDescription() { return mb.getString("description"); }
@Override /* ConsoleCommand */ public String getInfo() { return mb.getString("info"); }
/** * Same as {@link #getString(String, Object...)} but uses the locale specified on the call to {@link #setClientLocale(Locale)}. * * @param key The resource bundle key. * @param args Optional {@link MessageFormat}-style arguments. * @return * The resolved value. Never <jk>null</jk>. * <js>"{!!key}"</js> if the bundle is missing. * <js>"{!key}"</js> if the key is missing. */ public String getClientString(String key, Object...args) { return getString(clientLocale.get(), key, args); }
/** * Same as {@link #getString(String, Object...)} but uses the locale specified on the call to {@link #setClientLocale(Locale)}. * * @param key The resource bundle key. * @param args Optional {@link MessageFormat}-style arguments. * @return * The resolved value. Never <jk>null</jk>. * <js>"{!!key}"</js> if the bundle is missing. * <js>"{!key}"</js> if the key is missing. */ public String getClientString(String key, Object...args) { return getString(clientLocale.get(), key, args); }
/** * Same as {@link #getString(String, Object...)} but uses the locale specified on the call to {@link #setClientLocale(Locale)}. * * @param key The resource bundle key. * @param args Optional {@link MessageFormat}-style arguments. * @return * The resolved value. Never <jk>null</jk>. * <js>"{!!key}"</js> if the bundle is missing. * <js>"{!key}"</js> if the key is missing. */ public String getClientString(String key, Object...args) { return getString(clientLocale.get(), key, args); }
/** * Shortcut method for calling {@link MessageBundle#getString(Locale, String, Object...)} based on the request locale. * * @param key The message key. * @param args Optional {@link MessageFormat}-style arguments. * @return The localized message. */ public String getMessage(String key, Object...args) { return context.getMessages().getString(getLocale(), key, args); }
/** * Shortcut method for calling {@link MessageBundle#getString(Locale, String, Object...)} based on the request locale. * * @param key The message key. * @param args Optional {@link MessageFormat}-style arguments. * @return The localized message. */ public String getMessage(String key, Object...args) { return context.getMessages().getString(getLocale(), key, args); }
/** * Shortcut method for calling {@link MessageBundle#getString(Locale, String, Object...)} based on the request locale. * * @param key The message key. * @param args Optional {@link MessageFormat}-style arguments. * @return The localized message. */ public String getMessage(String key, Object...args) { return context.getMessages().getString(getLocale(), key, args); }
@RestMethod public String a02(MessageBundle t) { return t == null ? null : t.getString("foo"); } @RestMethod(name=POST)