java.lang.Object
org.exoplatform.services.organization.idm.ldap.SrvRecord

public class SrvRecord extends Object
A single DNS SRV record, as returned for a name such as _ldap._tcp.example.com, in the RFC 2782 wire format: <priority> <weight> <port> <target>.
  • Constructor Details

    • SrvRecord

      public SrvRecord(int priority, int weight, int port, String target)
  • Method Details

    • parse

      public static SrvRecord parse(String value)
      Parses a single SRV record value as returned by the JNDI DNS provider, e.g. "10 60 389 dc1.example.com.".
      Parameters:
      value - the raw SRV attribute value
      Returns:
      the parsed record, or null if the value could not be parsed
    • getPriority

      public int getPriority()
    • getWeight

      public int getWeight()
    • getPort

      public int getPort()
    • getTarget

      public String getTarget()
    • toUrl

      public String toUrl(String scheme)
    • toString

      public String toString()
      Overrides:
      toString in class Object