Class SRVRecord

java.lang.Object
org.ldaptive.dns.SRVRecord

public class SRVRecord extends Object
Class to contain the properties of a DNS SRV record.
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • priority

      private final long priority
      SRV priority.
    • weight

      private final long weight
      SRV weight.
    • port

      private final int port
      SRV port.
    • target

      private final String target
      SRV target.
    • useSSL

      private final boolean useSSL
      whether to use LDAPS.
  • Constructor Details

    • SRVRecord

      public SRVRecord(String record, boolean ssl)
      Creates a new SRV record.
      Parameters:
      record - from DNS
      ssl - whether to use LDAPS
  • Method Details

    • getPriority

      public long getPriority()
      Returns the priority.
      Returns:
      priority
    • getWeight

      public long getWeight()
      Returns the weight.
      Returns:
      weight
    • getPort

      public int getPort()
      Returns the port.
      Returns:
      port
    • getTarget

      public String getTarget()
      Returns the target.
      Returns:
      target
    • getLdapURL

      public LdapURL getLdapURL()
      Returns the target properly formatted as an LDAP URL.
      Returns:
      LDAP URL
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object