Package org.opencms.flex
Class CmsFlexController.RedirectInfo
java.lang.Object
org.opencms.flex.CmsFlexController.RedirectInfo
- Enclosing class:
- CmsFlexController
Information about where to redirect to.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeRedirect
(javax.servlet.http.HttpServletResponse res) Executes the redirect on the given response with the stored information.Gets the redirect target.boolean
Returns true if a permanent redirect should be used.
-
Constructor Details
-
RedirectInfo
Creates a new instance.- Parameters:
target
- the redirect targetpermanent
- true if a permanent redirect should be used
-
-
Method Details
-
executeRedirect
Executes the redirect on the given response with the stored information.- Parameters:
res
- the res to use for executing the redirect- Throws:
IOException
-
getTarget
Gets the redirect target.- Returns:
- the redirect target
-
isPermanent
Returns true if a permanent redirect should be used.- Returns:
- true if a permanent redirect should be used
-