Package org.apache.jasper.compiler
Class Localizer
- java.lang.Object
-
- org.apache.jasper.compiler.Localizer
-
public class Localizer extends java.lang.ObjectClass responsible for converting error codes to corresponding localized error messages.
-
-
Constructor Summary
Constructors Constructor Description Localizer()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetMessage(java.lang.String errCode)Returns the localized error message corresponding to the given error code.static java.lang.StringgetMessage(java.lang.String errCode, java.lang.Object... args)Returns the localized error message corresponding to the given error code.
-
-
-
Method Detail
-
getMessage
public static java.lang.String getMessage(java.lang.String errCode)
Returns the localized error message corresponding to the given error code. If the given error code is not defined in the resource bundle for localized error messages, it is used as the error message.- Parameters:
errCode- Error code to localize- Returns:
- Localized error message
-
getMessage
public static java.lang.String getMessage(java.lang.String errCode, java.lang.Object... args)Returns the localized error message corresponding to the given error code. If the given error code is not defined in the resource bundle for localized error messages, it is used as the error message.- Parameters:
errCode- Error code to localizeargs- Arguments for parametric replacement- Returns:
- Localized error message
-
-