Enum SessionCreationPolicy

java.lang.Object
java.lang.Enum<SessionCreationPolicy>
com.codename1.backend.security.SessionCreationPolicy
All Implemented Interfaces:
Comparable<SessionCreationPolicy>

public enum SessionCreationPolicy extends Enum<SessionCreationPolicy>
Whether a chain may use the HTTP session.
  • Enum Constant Details

    • ALWAYS

      public static final SessionCreationPolicy ALWAYS
      Every request under the chain gets a session.
    • NEVER

      public static final SessionCreationPolicy NEVER
      The chain never starts a session and uses one that is already there.
    • IF_REQUIRED

      public static final SessionCreationPolicy IF_REQUIRED
      A session starts when the chain needs one: at sign-in, or to remember where an anonymous request was going. The default.
    • STATELESS

      public static final SessionCreationPolicy STATELESS
      The chain neither starts nor reads a session: each request carries its own credentials.
  • Method Details

    • values

      public static SessionCreationPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SessionCreationPolicy valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null