Enum Class DirectorySession.ConnectionState

java.lang.Object
java.lang.Enum<DirectorySession.ConnectionState>
com.isode.dsapi.DirectorySession.ConnectionState
All Implemented Interfaces:
Serializable, Comparable<DirectorySession.ConnectionState>, Constable
Enclosing class:
DirectorySession

public static enum DirectorySession.ConnectionState extends Enum<DirectorySession.ConnectionState>
Used to report the state of a session: whether and how it is bound. Values here represent the session's state following the most recent directory operation, and are updated whenever an operation is performed.

Note that if a network connection is lost, then the session state will not become CONNECTION_LOST until the next directory operation is attempted and the problem detected.

Since:
14.4
  • Enum Constant Details

  • Method Details

    • values

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

      public static DirectorySession.ConnectionState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null