Enum Class BindProfileAddress.AddressType

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

public static enum BindProfileAddress.AddressType extends Enum<BindProfileAddress.AddressType>
An enumeration defining the different address types that can be used to create a bind profile.
  • Enum Constant Details

  • Method Details

    • values

      public static BindProfileAddress.AddressType[] 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 BindProfileAddress.AddressType 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
    • getIsNonPaUri

      public boolean getIsNonPaUri()
      Returns whether this is an LDAP, LDAPS or XMPP URL type of address.
      Returns:
      TRUE if this is an LDAP, LDAPS or XMPP URL type of address.
    • getScheme

      public String getScheme()
      Returns the URI scheme to be used if it is an LDAP or LDAPS URL type of address.
      Returns:
      URI scheme.
    • getStandardPort

      public int getStandardPort()
      Returns the "protocol standard" port to be used for this type of address. For example, the standard port for LDAP is 389.
      Returns:
      The standard port to be used for this type of address.
    • getDefaultPort

      public int getDefaultPort()
      Returns the "Isode default" port to be used for this type of address. For example, the default port for LDAP is 19389.
      Returns:
      The default port to be used for this type of address.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<BindProfileAddress.AddressType>
    • isApplicationType

      public boolean isApplicationType()
    • compareBindProfileAddress

      public int compareBindProfileAddress(BindProfileAddress thisBPA, BindProfileAddress thatBPA)
      Compare two bind profile addresses for the given address type
      Parameters:
      thisBPA - bind profile address to compare, not null
      thatBPA - bind profile address to compare to, not null
      Returns:
      result of comparison
      Since:
      16.1