Class ReferralAddress


  • public class ReferralAddress
    extends java.lang.Object
    Class representing an address returned as one of the alternative locations to try when a directory server returns a referral. This class corresponds to the DSAPI DS_ReferralAddress structure
    Author:
    nh
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferralAddress​(Referral referral, java.lang.String bindAddress, DN dsaDN)
      Constructor used by JNI
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBindAddress()
      Return the bind address for this referral address.
      DN getDsaDN()
      Return the DN of the DSA corresponding to this referral address.
      java.lang.String toString()
      Returns a string containing information about this address.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ReferralAddress

        public ReferralAddress​(Referral referral,
                               java.lang.String bindAddress,
                               DN dsaDN)
        Constructor used by JNI
        Parameters:
        referral - Referral object to which this ReferralAddress belongs
        bindAddress - bind address
        dsaDN - dsa DN (may be null)
    • Method Detail

      • getBindAddress

        public java.lang.String getBindAddress()
        Return the bind address for this referral address.
        Returns:
        a String which will be suitable for using when establishing a new DirectorySession
        See Also:
        DirectorySession(String)
      • getDsaDN

        public DN getDsaDN()
        Return the DN of the DSA corresponding to this referral address. Since not all referrals include this information, the value returned may be null.
        Returns:
        the DN of the DSA for this referral address, or null if none is available.
      • toString

        public java.lang.String toString()
        Returns a string containing information about this address. bind address.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String containing information about the referral address.