Class SetLanguageBeforeControllerHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforecontroller.SetLanguageBeforeControllerHandler
- All Implemented Interfaces:
BeforeControllerHandler
Allow the language to be changed per request.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) Called before the DispatcherServlet calls the controller.protected Stringprotected booleanisGetMethod(javax.servlet.http.HttpServletRequest request) voidsetLanguageParameter(String paramKey)
-
Field Details
-
DEFAULT_LANG_PARAM
- See Also:
-
-
Constructor Details
-
SetLanguageBeforeControllerHandler
public SetLanguageBeforeControllerHandler()
-
-
Method Details
-
getLanguageParameter
-
setLanguageParameter
-
beforeController
public boolean beforeController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.method.HandlerMethod handler) Description copied from interface:BeforeControllerHandlerCalled before the DispatcherServlet calls the controller.- Specified by:
beforeControllerin interfaceBeforeControllerHandler- Parameters:
request- current HTTP requestresponse- current HTTP response- Returns:
trueif the execution chain should proceed with the next interceptor or the handler itself. Else, DispatcherServlet assumes that this interceptor has already dealt with the response itself.
-
isGetMethod
protected boolean isGetMethod(javax.servlet.http.HttpServletRequest request)
-