Interface ContextInformationLoader
- All Known Implementing Classes:
DefaultContextInformationLoader
public interface ContextInformationLoader
Interface for context information loader
-
Method Summary
Modifier and TypeMethodDescriptionsetCurrencyFromRequest(javax.servlet.http.HttpServletRequest request) Method set current currency based on information from request and recalculate cart for current sessionsetLanguageFromRequest(javax.servlet.http.HttpServletRequest request) Method set current language base on information from request
-
Method Details
-
setLanguageFromRequest
LanguageModel setLanguageFromRequest(javax.servlet.http.HttpServletRequest request) throws UnsupportedLanguageException Method set current language base on information from request- Parameters:
request- - request from which we should get language information- Returns:
- language set as current
- Throws:
UnsupportedLanguageException
-
setCurrencyFromRequest
CurrencyModel setCurrencyFromRequest(javax.servlet.http.HttpServletRequest request) throws UnsupportedCurrencyException Method set current currency based on information from request and recalculate cart for current session- Parameters:
request- - request from which we should get currency information- Returns:
- currency set as current
- Throws:
UnsupportedCurrencyException
-