com.ideo.sweetdevria.i18n
Interface ResourcesManager

All Known Implementing Classes:
DefaultResourcesManagerImpl

public interface ResourcesManager

Class used to get i18n messages.


Field Summary
static java.lang.String LOCAL_SESSION_KEY
           
 
Method Summary
 java.lang.String getMessage(java.lang.String key, javax.servlet.http.HttpSession session)
          Try to get the value from internationalized bundle, if not found, then from excel type format bundle.
 java.lang.String getMessage(java.lang.String key, javax.servlet.jsp.PageContext pageContext)
          Try to get the value from internationalized bundle, if not found, then from excel type format bundle.
 java.lang.String getMessage(java.lang.String key, javax.servlet.ServletRequest request, javax.servlet.http.HttpSession session)
          Try to get the value from internationalized bundle, if not found, then from excel type format bundle.
 

Field Detail

LOCAL_SESSION_KEY

static final java.lang.String LOCAL_SESSION_KEY
See Also:
Constant Field Values
Method Detail

getMessage

java.lang.String getMessage(java.lang.String key,
                            javax.servlet.jsp.PageContext pageContext)
Try to get the value from internationalized bundle, if not found, then from excel type format bundle. If the value is not found, then return the key.

Parameters:
key - to find
pageContext -
Returns:
value found from bundle.

getMessage

java.lang.String getMessage(java.lang.String key,
                            javax.servlet.http.HttpSession session)
Try to get the value from internationalized bundle, if not found, then from excel type format bundle. If the value is not found, then return the key.

Parameters:
key - to find
session -
Returns:
value found from bundle.

getMessage

java.lang.String getMessage(java.lang.String key,
                            javax.servlet.ServletRequest request,
                            javax.servlet.http.HttpSession session)
Try to get the value from internationalized bundle, if not found, then from excel type format bundle. If the value is not found, then return the key.

Parameters:
key - to find
request -
session -
Returns:
value found from bundle.


Copyright © 2010 Ideo Technologies. All Rights Reserved.