Class SRVRecord


  • public class SRVRecord
    extends java.lang.Object
    Class to contain the properties of a DNS SRV record.
    Author:
    Middleware Services
    • Constructor Summary

      Constructors 
      Constructor Description
      SRVRecord​(java.lang.String record, boolean ssl)
      Creates a new SRV record.
    • Constructor Detail

      • SRVRecord

        public SRVRecord​(java.lang.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 java.lang.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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object