Interface PageRedirectStrategy

All Known Implementing Classes:
DefaultPageRedirectStrategy

public interface PageRedirectStrategy
Interface for strategy to determine whether to redirect the given request and also responsible for providing redirect url.
  • Method Summary

    Modifier and Type
    Method
    Description
    getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
    Constructs the redirect url given the http servlet request and the preview data.
    boolean
    shouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
    Verifies whether a request needs to be redirected or not.
  • Method Details

    • shouldRedirect

      boolean shouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
      Verifies whether a request needs to be redirected or not.
      Parameters:
      request - - the http servlet request
      previewData - - the preview data
      Returns:
      true when the request needs to be redirected, otherwise false
    • getRedirectUrl

      String getRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData)
      Constructs the redirect url given the http servlet request and the preview data.
      Parameters:
      request - - the http servlet request
      previewData - - the preview data
      Returns:
      the redirect url