Package com.isode.dsapi.syntax
Enum Class NetworkAddress.Type
- All Implemented Interfaces:
Serializable,Comparable<NetworkAddress.Type>,Constable
- Enclosing class:
- NetworkAddress
An enumeration defining the different address types that can be used to
create a network address.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintReturns the "Isode default" port to be used for this type of address.intReturns the length before the URI begins in a URI address of this type.intReturns the "protocol standard" port to be used for this type of address.Returns the prefix of a TELEX address of this type.Returns the prefix of a URI address of this type.Returns the URI scheme in a URI address of this type.toString()static NetworkAddress.TypeReturns the enum constant of this class with the specified name.static NetworkAddress.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ITOT
ITOT -
ITOTS
ITOTS -
LDAP
LDAP -
LDAPS
LDAPS -
PLDAP
PLDAP -
PLDAPS
PLDAPS -
MESH
MESH -
IDM
IDM -
OTHER
Other
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getTelexPrefix
Returns the prefix of a TELEX address of this type.- Returns:
- Prefix of a TELEX address of this type.
-
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
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
- Overrides:
toStringin classEnum<NetworkAddress.Type>
-