|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.servlet.RequestLocale
atg.userprofiling.ProfileRequestLocale
atg.projects.store.servlet.StoreRequestLocale
public class StoreRequestLocale
The extensions to ootb RequestLocale.
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
LANG_SELECTION_PARAMETER
|
static java.lang.String |
PROFILE_LOCALE_UNSET_VALUE
|
static java.lang.String |
STORE_CONFIGURATION_ATTRIBUTE_NAME
|
static java.lang.String |
STORE_ID_COOKIE_NAME
|
static java.lang.String |
USER_PREF_LANGUAGE_COOKIE_NAME
|
| Constructor Summary | |
|---|---|
StoreRequestLocale()
|
|
| Method Summary | |
|---|---|
protected void |
createUserPrefLangCookie(atg.servlet.DynamoHttpServletRequest pRequest,
java.lang.String pLanguage)
This operation creates cookie for user preffered language. |
java.util.Locale |
discernRequestLocale(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pReqLocal)
Obtains locale from http request. |
protected java.util.Locale |
fillLocaleFromLangSelection(atg.servlet.DynamoHttpServletRequest pRequest)
|
protected java.util.Locale |
fillLocaleFromProfile(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pReqLocal)
|
protected java.util.Locale |
fillLocaleFromStore(atg.servlet.DynamoHttpServletRequest pRequest)
|
protected java.util.Locale |
fillLocaleFromStoreSelection(atg.servlet.DynamoHttpServletRequest pRequest)
|
protected java.util.Locale |
fillLocaleFromUserPrefLang(atg.servlet.DynamoHttpServletRequest pRequest)
|
InternationalizationStoreConfiguration |
getInternationalizationStoreConfiguration()
Gets the internationalization StoreConfiguration. |
InternationalizationStoreConfigurationContainer |
getInternationalizationStoreConfigurationContainer()
Gets the internationalization StoreConfigurationContainer. |
SessionBean |
getSessionBean()
Gets the session bean property |
void |
setInternationalizationStoreConfiguration(InternationalizationStoreConfiguration pInternationalizationStoreConfiguration)
Sets the InternationalizationStoreConfiguration. |
void |
setInternationalizationStoreConfigurationContainer(InternationalizationStoreConfigurationContainer pInternationalizationStoreConfigurationContainer)
Registers the InternationalizationStoreConfigurationContainer. |
void |
setSessionBean(SessionBean pSessionBean)
Sets session bean property |
protected void |
updateProfileLocale(atg.servlet.DynamoHttpServletRequest pRequest,
java.util.Locale locale)
Updates locale in profile. |
| Methods inherited from class atg.userprofiling.ProfileRequestLocale |
|---|
getProfileAttributeName, getProfilePath, handleRefresh, localeFromProfileAttribute, setProfileAttributeName, setProfilePath |
| Methods inherited from class atg.servlet.RequestLocale |
|---|
doStartService, fillInHTTPInfo, getAcceptCharset, getAcceptCharsetList, getAcceptLanguage, getAcceptLanguageList, getCachedLocale, getDefaultRequestLocale, getDefaultRequestLocaleName, getDetectHTTPHeaderChanges, getLocale, getLocaleString, getNewLocale, getOriginatingRequest, getOverrideRequestLocale, getOverrideRequestLocaleName, getPreviousLocale, getPreviousLocaleString, getValidLocaleNames, getValidLocales, initializeRequestLocale, localeFromHTTPHeader, setDefaultRequestLocaleName, setDetectHTTPHeaderChanges, setLocale, setLocaleString, setOriginatingRequest, setOverrideRequestLocaleName, setValidLocaleNames |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String USER_PREF_LANGUAGE_COOKIE_NAME
public static final java.lang.String STORE_ID_COOKIE_NAME
public static final java.lang.String LANG_SELECTION_PARAMETER
public static final java.lang.String STORE_CONFIGURATION_ATTRIBUTE_NAME
public static final java.lang.String PROFILE_LOCALE_UNSET_VALUE
| Constructor Detail |
|---|
public StoreRequestLocale()
| Method Detail |
|---|
public InternationalizationStoreConfigurationContainer getInternationalizationStoreConfigurationContainer()
atg.projects.store.storeconfig.InternationalizationStoreConfigurationContainer.public void setInternationalizationStoreConfigurationContainer(InternationalizationStoreConfigurationContainer pInternationalizationStoreConfigurationContainer)
pInternationalizationStoreConfigurationContainer - the config container.public InternationalizationStoreConfiguration getInternationalizationStoreConfiguration()
public void setInternationalizationStoreConfiguration(InternationalizationStoreConfiguration pInternationalizationStoreConfiguration)
pInternationalizationStoreConfiguration - store configuration.public SessionBean getSessionBean()
public void setSessionBean(SessionBean pSessionBean)
pSessionBean - session bean
public java.util.Locale discernRequestLocale(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pReqLocal)
discernRequestLocale in class atg.userprofiling.ProfileRequestLocalepRequest - DynamoHttpServletRequestpReqLocal - Request locale
protected java.util.Locale fillLocaleFromLangSelection(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest object.
protected java.util.Locale fillLocaleFromStoreSelection(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest object.
protected java.util.Locale fillLocaleFromUserPrefLang(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest object.
protected java.util.Locale fillLocaleFromProfile(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pReqLocal)
pRequest - DynamoHttpServletRequest object.pReqLocal - RequestLocale object.
protected java.util.Locale fillLocaleFromStore(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest - DynamoHttpServletRequest object.
protected void createUserPrefLangCookie(atg.servlet.DynamoHttpServletRequest pRequest,
java.lang.String pLanguage)
pRequest - DynamoHttpServletRequest object.pLanguage - User preferred language.
protected void updateProfileLocale(atg.servlet.DynamoHttpServletRequest pRequest,
java.util.Locale locale)
pRequest - DynamoHttpServletRequest object.locale - Profile Locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||