Class CmsFlexController.RedirectInfo

java.lang.Object
org.opencms.flex.CmsFlexController.RedirectInfo
Enclosing class:
CmsFlexController

public static class CmsFlexController.RedirectInfo extends Object
Information about where to redirect to.
  • Constructor Details

    • RedirectInfo

      public RedirectInfo(String target, boolean permanent)
      Creates a new instance.
      Parameters:
      target - the redirect target
      permanent - true if a permanent redirect should be used
  • Method Details

    • executeRedirect

      public void executeRedirect(javax.servlet.http.HttpServletResponse res) throws IOException
      Executes the redirect on the given response with the stored information.
      Parameters:
      res - the res to use for executing the redirect
      Throws:
      IOException
    • getTarget

      public String getTarget()
      Gets the redirect target.
      Returns:
      the redirect target
    • isPermanent

      public boolean isPermanent()
      Returns true if a permanent redirect should be used.
      Returns:
      true if a permanent redirect should be used