Class SRVRecord


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

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • 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 Detail

      • SRVRecord

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

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object