/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name */ public static final synchronized StringManager getManager( String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name */ public static final synchronized StringManager getManager( String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name */ public static final synchronized StringManager getManager( String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name */ public static final synchronized StringManager getManager( String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name */ public static final synchronized StringManager getManager( String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a particular package. If a manager for * a package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param packageName The package name * * @return The instance associated with the given package and the default * Locale */ public static final StringManager getManager(String packageName) { return getManager(packageName, Locale.getDefault()); }
/** * Get the StringManager for a given class. The StringManager will be * returned for the package in which the class is located. If a manager for * that package already exists, it will be reused, else a new * StringManager will be created and returned. * * @param clazz The class for which to retrieve the StringManager * * @return The instance associated with the package of the provide class */ public static final StringManager getManager(Class<?> clazz) { return getManager(clazz.getPackage().getName()); }
/** * Retrieves a formatted JVM thread dump. * The given list of locales will be used * to retrieve a StringManager. * * @param requestedLocales list of locales to use * @return the formatted JVM thread dump */ public static String getThreadDump(Enumeration<Locale> requestedLocales) { return getThreadDump( StringManager.getManager(PACKAGE, requestedLocales)); }
/** * Retrieves a formatted JVM thread dump. * The given list of locales will be used * to retrieve a StringManager. * * @param requestedLocales list of locales to use * @return the formatted JVM thread dump */ public static String getThreadDump(Enumeration<Locale> requestedLocales) { return getThreadDump( StringManager.getManager(PACKAGE, requestedLocales)); }
/** * Retrieves a formatted JVM information text. * The given list of locales will be used * to retrieve a StringManager. * * @param requestedLocales list of locales to use * @return the formatted JVM information text */ public static String getVMInfo(Enumeration<Locale> requestedLocales) { return getVMInfo(StringManager.getManager(PACKAGE, requestedLocales)); }
/** * Retrieves a formatted JVM information text. * The given list of locales will be used * to retrieve a StringManager. * * @param requestedLocales list of locales to use * @return the formatted JVM information text */ public static String getVMInfo(Enumeration<Locale> requestedLocales) { return getVMInfo(StringManager.getManager(PACKAGE, requestedLocales)); }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; }
public static HttpMessages getInstance(Locale locale) { HttpMessages result = instances.get(locale); if (result == null) { StringManager sm = StringManager.getManager( "org.apache.tomcat.util.http.res", locale); if (Locale.getDefault().equals(sm.getLocale())) { result = DEFAULT; } else { result = new HttpMessages(sm); } instances.put(locale, result); } return result; }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; } }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; } }
protected StringManager getStringManager(HttpServletRequest req) { Enumeration<Locale> requestedLocales = req.getLocales(); while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = StringManager.getManager(Constants.Package, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return sm; } }