Class DefaultPageRedirectStrategy
java.lang.Object
de.hybris.platform.cmsoccaddon.redirect.strategies.impl.DefaultPageRedirectStrategy
- All Implemented Interfaces:
PageRedirectStrategy
Default implementation of
PageRedirectStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PageRedirectSupplier>getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Constructs the redirect url given the http servlet request and the preview data.voidsetPageRedirectSuppliers(List<PageRedirectSupplier> pageRedirectSuppliers) booleanshouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Verifies whether a request needs to be redirected or not.
-
Constructor Details
-
DefaultPageRedirectStrategy
public DefaultPageRedirectStrategy()
-
-
Method Details
-
shouldRedirect
public boolean shouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Description copied from interface:PageRedirectStrategyVerifies whether a request needs to be redirected or not.- Specified by:
shouldRedirectin interfacePageRedirectStrategy- Parameters:
request- - the http servlet requestpreviewData- - the preview data- Returns:
truewhen the request needs to be redirected, otherwisefalse
-
getRedirectUrl
public String getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Description copied from interface:PageRedirectStrategyConstructs the redirect url given the http servlet request and the preview data.- Specified by:
getRedirectUrlin interfacePageRedirectStrategy- Parameters:
request- - the http servlet requestpreviewData- - the preview data- Returns:
- the redirect url
-
getPageRedirectSuppliers
-
setPageRedirectSuppliers
-