Class DefaultPageRedirectStrategy

java.lang.Object
de.hybris.platform.cmsocc.redirect.strategies.impl.DefaultPageRedirectStrategy
All Implemented Interfaces:
PageRedirectStrategy

public class DefaultPageRedirectStrategy extends Object implements PageRedirectStrategy
Default implementation of PageRedirectStrategy.
  • Constructor Details

    • DefaultPageRedirectStrategy

      public DefaultPageRedirectStrategy()
  • Method Details

    • shouldRedirect

      public boolean shouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
      Description copied from interface: PageRedirectStrategy
      Verifies whether a request needs to be redirected or not.
      Specified by:
      shouldRedirect in interface PageRedirectStrategy
      Parameters:
      request - - the http servlet request
      previewData - - the preview data
      Returns:
      true when the request needs to be redirected, otherwise false
    • getRedirectUrl

      public String getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
      Description copied from interface: PageRedirectStrategy
      Constructs the redirect url given the http servlet request and the preview data.
      Specified by:
      getRedirectUrl in interface PageRedirectStrategy
      Parameters:
      request - - the http servlet request
      previewData - - the preview data
      Returns:
      the redirect url
    • getPageRedirectSuppliers

      protected List<PageRedirectSupplier> getPageRedirectSuppliers()
    • setPageRedirectSuppliers

      public void setPageRedirectSuppliers(List<PageRedirectSupplier> pageRedirectSuppliers)