public interface ContextInformationLoader
| Modifier and Type | Method and Description |
|---|---|
BaseSiteModel |
initializeSiteFromRequest(HttpServletRequest request)
Method resolves base site uid from URL and set it as current site i.e
/rest/v1/mysite/cart, or /rest/v1/mysite/customers/current would try to set base site with uid=mysite as a current site. |
CurrencyModel |
setCurrencyFromRequest(HttpServletRequest request)
Method set current currency based on information from request and recalculate cart for current session
|
LanguageModel |
setLanguageFromRequest(HttpServletRequest request)
Method set current language base on information from request
|
BaseSiteModel initializeSiteFromRequest(HttpServletRequest request) throws InvalidResourceException
request - - request from which we should get base site uidInvalidResourceExceptionLanguageModel setLanguageFromRequest(HttpServletRequest request) throws UnsupportedLanguageException
request - - request from which we should get language informationUnsupportedLanguageExceptionCurrencyModel setCurrencyFromRequest(HttpServletRequest request) throws UnsupportedCurrencyException, RecalculationException
request - - request from which we should get currency informationUnsupportedCurrencyExceptionRecalculationExceptionCopyright © 2018 SAP SE. All Rights Reserved.