Class AbstractMessageHelper
java.lang.Object
org.springframework.extensions.webscripts.AbstractMessageHelper
- Direct Known Subclasses:
MessageMethod,ScriptMessage
- Author:
- Kevin Roast
Base class for returning an I18N message string for a WebScript.
Returns an I18N message resolved for the current locale and specified message ID.
Firstly the service resource for the parent WebScript will be used for the lookup, followed by the global webscripts.properties resource bundle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final StringresolveMessage(String id, Object... args) Get an I18Ned message.
-
Constructor Details
-
AbstractMessageHelper
Constructor- Parameters:
webscript- The WebScript to lookup resources against first
-
-
Method Details
-
resolveMessage
Get an I18Ned message.- Parameters:
id- The message Idargs- The optional list of message arguments- Returns:
- resolved message string or the original ID if unable to find
-