| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ServiceLocator.
This class holds a DNS service (SRV) record. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Random | |
| private static final String | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String[] | extractHostports(ServiceLocator.
Extract hosts and port numbers from a list of SRV records. |
| pack-priv static String[] | Returns: An ordered list of hostports for the LDAP service or null if the service has not been located.A string domain name. domainName, Map<?, ?> The possibly null environment of the context. environment)Locates the LDAP service for a given domain. |
| pack-priv static String[] | Returns: An ordered list of hostports for the LDAP service or null if the service has not been located.A string domain name. domainName, Hashtable<?, ?> The possibly null environment of the context. environment)Locates the LDAP service for a given domain. |
| pack-priv static String | Returns: A domain name or null if none can be derived.A string distinguished name (RFC 2253). dn)Maps a distinguished name (RFC 2253) to a fully qualified domain name. |
| private static String |
| random | back to summary |
|---|---|
| private static final Random random | |
| SRV_RR | back to summary |
|---|---|
| private static final String SRV_RR | |
| SRV_RR_ATTR | back to summary |
|---|---|
| private static final String[] SRV_RR_ATTR | |
| ServiceLocator | back to summary |
|---|---|
| private ServiceLocator() | |
| extractHostports | back to summary |
|---|---|
| private static String[] extractHostports(ServiceLocator. Extract hosts and port numbers from a list of SRV records. An array of hostports is returned or null if none were found. | |
| getLdapService | back to summary |
|---|---|
| pack-priv static String[] getLdapService(String domainName, Map<?, ?> environment) Locates the LDAP service for a given domain. Queries DNS for a list of LDAP Service Location Records (SRV) for a given domain name. | |
| getLdapService | back to summary |
|---|---|
| pack-priv static String[] getLdapService(String domainName, Hashtable<?, ?> environment) Locates the LDAP service for a given domain. Queries DNS for a list of LDAP Service Location Records (SRV) for a given domain name. | |
| mapDnToDomainName | back to summary |
|---|---|
| pack-priv static String mapDnToDomainName(String dn) throws InvalidNameException Maps a distinguished name (RFC 2253) to a fully qualified domain name. Processes a sequence of RDNs having a DC attribute. The special RDN "DC=." denotes the root of the domain tree. Multi-valued RDNs, non-DC attributes, binary-valued attributes and the RDN "DC=." all reset the domain name and processing continues.
| |
| selectHostport | back to summary |
|---|---|
| private static String selectHostport(ServiceLocator. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(ServiceLocator.
Implements java. Compares this object with the specified object for order. |
| hostport | back to summary |
|---|---|
| pack-priv String hostport | |
| priority | back to summary |
|---|---|
| pack-priv int priority | |
| sum | back to summary |
|---|---|
| pack-priv int sum | |
| weight | back to summary |
|---|---|
| pack-priv int weight | |
| SrvRecord | back to summary |
|---|---|
| pack-priv SrvRecord(String srvRecord) throws Exception Creates a service record object from a string record. DNS supplies the string record in the following format:
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(ServiceLocator. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |