|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMessageBuilder
This is the interface for classes that implements logic to retrieve localized messages to be used in JSP pages
Method Summary | |
---|---|
java.lang.String |
getMessage(java.lang.String code)
Returns the message associated with code in the default bundle |
java.lang.String |
getMessage(java.lang.String code,
javax.servlet.http.HttpServletRequest request)
Returns the message associated with code in the default bundle. |
java.lang.String |
getMessage(java.lang.String code,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
If the specified locale is valid, returns the message associated with code in the default bundle with the specified locale; otherwise returns the message associated with code in the default bundle with request locale. |
java.lang.String |
getMessage(java.lang.String code,
java.util.Locale locale)
If the specified locale is valid, returns the message associated with code in the default bundle with the specified locale; otherwise returns the message associated with code in the default bundle with default locale. |
java.lang.String |
getMessage(java.lang.String code,
java.lang.String bundle)
Returns the message associated with code in the given bundle. |
java.lang.String |
getMessage(java.lang.String code,
java.lang.String bundle,
javax.servlet.http.HttpServletRequest request)
Returns the message associated with code in the given bundle. |
java.lang.String |
getMessage(java.lang.String code,
java.lang.String bundle,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
If the specified locale is valid, returns the message associated with code in the input bundle with the specified locale; otherwise returns the message associated with code in the input bundle with request locale. |
java.lang.String |
getMessage(java.lang.String code,
java.lang.String bundle,
java.util.Locale locale)
If the specified locale is valid, returns the message associated with code in the input bundle with the specified locale; otherwise returns the message associated with code in the input bundle with default locale. |
java.lang.String |
getMessageTextFromResource(java.lang.String resourceName,
javax.servlet.http.HttpServletRequest request)
Gets a localized information text given the resource name which contains the text information. |
java.lang.String |
getMessageTextFromResource(java.lang.String resourceName,
java.util.Locale locale)
If the specified locale is valid, returns the localized text contained into the resource with the specified locale; otherwise returns the localized text contained into the resource with default locale. |
java.lang.String |
getUserMessage(java.lang.String code,
java.lang.String bundle,
javax.servlet.http.HttpServletRequest request)
Returns the message associated with code in the given bundle only if starts with #. |
java.lang.String |
getUserMessage(java.lang.String code,
java.lang.String bundle,
java.util.Locale locale)
Returns the message associated with code in the given bundle only if starts with #. |
Method Detail |
---|
java.lang.String getMessage(java.lang.String code)
code:
- the message codejava.lang.String getMessage(java.lang.String code, java.util.Locale locale)
code
- the codelocale
- the locale
java.lang.String getMessage(java.lang.String code, java.lang.String bundle)
code
- the codebundle
- the bundle
java.lang.String getMessage(java.lang.String code, java.lang.String bundle, java.util.Locale locale)
code
- the codebundle
- the bundlelocale
- the locale
java.lang.String getMessage(java.lang.String code, javax.servlet.http.HttpServletRequest request)
code
- the coderequest
- the request
java.lang.String getMessage(java.lang.String code, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
code
- the coderequest
- the requestlocale
- the locale
java.lang.String getMessage(java.lang.String code, java.lang.String bundle, javax.servlet.http.HttpServletRequest request)
code
- the codebundle
- the bundlerequest
- the request
java.lang.String getUserMessage(java.lang.String code, java.lang.String bundle, java.util.Locale locale)
code
- the codebundle
- the bundlelocale
- the locale
java.lang.String getUserMessage(java.lang.String code, java.lang.String bundle, javax.servlet.http.HttpServletRequest request)
code
- the codebundle
- the bundlerequest
- the request
java.lang.String getMessage(java.lang.String code, java.lang.String bundle, javax.servlet.http.HttpServletRequest request, java.util.Locale locale)
code
- the codebundle
- the bundlerequest
- the requestlocale
- the locale
java.lang.String getMessageTextFromResource(java.lang.String resourceName, javax.servlet.http.HttpServletRequest request)
resourceName
- The complete name of the resource.request
- The http request for locale retrieving
java.lang.String getMessageTextFromResource(java.lang.String resourceName, java.util.Locale locale)
resourceName
- The complete name of the resourcelocale
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |