Enum RenderPageRequestHandler.RedirectPolicy

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALWAYS_REDIRECT
      Always redirect if current request URL is different than page URL.
      AUTO_REDIRECT
      Redirect if necessary.
      NEVER_REDIRECT
      Never redirect - always render the page to current response.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RenderPageRequestHandler.RedirectPolicy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RenderPageRequestHandler.RedirectPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AUTO_REDIRECT

        public static final RenderPageRequestHandler.RedirectPolicy AUTO_REDIRECT
        Redirect if necessary. The redirect will happen when all of the following conditions are met:
        • current request URL is different than page URL
        • page is not stateless or (page is stateless and session is not temporary)
        • render strategy is either REDIRECT_TO_BUFFER or REDIRECT_TO_RENDER
    • Method Detail

      • values

        public static RenderPageRequestHandler.RedirectPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RenderPageRequestHandler.RedirectPolicy c : RenderPageRequestHandler.RedirectPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RenderPageRequestHandler.RedirectPolicy valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null