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 TypeMethodDescriptiongetRedirectUrl(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Constructs the redirect url given the http servlet request and the preview data.booleanshouldRedirect(javax.servlet.http.HttpServletRequest request, PreviewDataModel previewData) Verifies whether a request needs to be redirected or not.
-
Method Details
-
shouldRedirect
Verifies whether a request needs to be redirected or not.- Parameters:
request- - the http servlet requestpreviewData- - the preview data- Returns:
truewhen the request needs to be redirected, otherwisefalse
-
getRedirectUrl
Constructs the redirect url given the http servlet request and the preview data.- Parameters:
request- - the http servlet requestpreviewData- - the preview data- Returns:
- the redirect url
-