Enum Class NetworkAddress.Type

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

public static enum NetworkAddress.Type extends Enum<NetworkAddress.Type>
An enumeration defining the different address types that can be used to create a network address.
  • Enum Constant Details

  • Method Details

    • values

      public static NetworkAddress.Type[] 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 NetworkAddress.Type 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
    • getTelexPrefix

      public String getTelexPrefix()
      Returns the prefix of a TELEX address of this type.
      Returns:
      Prefix of a TELEX address of this type.
    • getUriPrefix

      public String getUriPrefix()
      Returns the prefix of a URI address of this type.
      Returns:
      Prefix of a URI address of this type.
    • getPreUriLen

      public int getPreUriLen()
      Returns the length before the URI begins in a URI address of this type.
      Returns:
      The length before the URI begins in a URI address of this type.
    • getUriScheme

      public String getUriScheme()
      Returns the URI scheme in a URI address of this type.
      Returns:
      The URI scheme in a URI address of this type.
    • 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<NetworkAddress.Type>