Class AJSFContext.RedirectOptionsBuilder

  • Enclosing class:
    AJSFContext

    public static class AJSFContext.RedirectOptionsBuilder
    extends Object
    • Constructor Detail

      • RedirectOptionsBuilder

        public RedirectOptionsBuilder()
    • Method Detail

      • addParam

        public AJSFContext.RedirectOptionsBuilder addParam​(String key,
                                                           String value)
        Parameters:
        key - Key of the additional URL parameters to be added to the URL.
        value - Value of the additional URL parameters to be added to the URL.
        Returns:
        this for chaining.
      • redirectScript

        public AJSFContext.RedirectOptionsBuilder redirectScript​(String redirectScript)
        Parameters:
        redirectScript - Perform the redirect on the client via the given custom JavaScript. Any occurrences of #href# are replaced with a JavaScript string literal of the URL to which to redirect.
        Returns:
        this for chaining.
      • subpath

        public void subpath​(String subpath)
        Parameters:
        subpath - An additional subpath after the redirect URI. Usually used for REST-like parameters. For example, /ui/forms/1234, with 1234 being the subpath.