Interface Redirect

  • All Superinterfaces:
    Wrapper

    public interface Redirect
    extends Wrapper
    Representation of redirect.
    • Method Detail

      • getPresentationFrame

        PresentationFrame getPresentationFrame()
        Returns the target frame.
        Returns:
        target frame.
      • getRelatedLink

        RelatedLink getRelatedLink()
        Returns the link to redirect to.
        Returns:
        link to redirect to.
      • setRelatedLink

        void setRelatedLink​(RelatedLink relatedLink)
        Sets the link to redirect to.
        Parameters:
        relatedLink - link to redirect to
      • getRedirectStatusCode

        int getRedirectStatusCode()
        Returns the redirect status code. One of 301 or 302.

        The default status code is 302 (Temporary redirect).

        Returns:
        Redirect status code.
      • setRedirectStatusCode

        void setRedirectStatusCode​(int redirectStatusCode)
        Sets the redirect status code.
        Parameters:
        redirectStatusCode - Redirect status code to set. Must be 301 or 302, or else an IllegalArgumentException is thrown.