it.eng.spagobi.utilities.messages
Interface IMessageBuilder

All Known Implementing Classes:
MessageBuilder

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, 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 getMessageTextFromResource(java.lang.String resourceName)
          Get the localized text contained into the resource
 

Method Detail

getMessage

java.lang.String getMessage(java.lang.String code)
Returns the message associated with code in the default bundle

Parameters:
code: - the message code

getMessage

java.lang.String getMessage(java.lang.String code,
                            java.lang.String bundle)
Returns the message associated with code in the given bundle

Parameters:
code: - the message code
bundle: - the bundle to use
Returns:
the message associated with code in the given bundle

getMessage

java.lang.String getMessage(java.lang.String code,
                            javax.servlet.http.HttpServletRequest request)
Returns the message associated with code in the default bundle

Parameters:
code: - the message code
request: - the http request

getMessage

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

Parameters:
code: - the message code
bundle: - the bundle to use
request: - the http request
Returns:
the message associated with code in the given bundle

getMessageTextFromResource

java.lang.String getMessageTextFromResource(java.lang.String resourceName)
Get the localized text contained into the resource

Parameters:
resourceName - The complete name of the resource
Returns:
the localized text contained into the resource