Class ReferralImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.ReferralImpl
- All Implemented Interfaces:
Referral
A Referral implementation. For the time being this implementation uses a
String representation for LDAPURLs. In the future an LdapUrl interface with
default implementations will be used once a parser for an LdapUrl is created.
- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLdapUrl(String url) Adds an LDAPv3 URL to this Referral.voidaddLdapUrlBytes(byte[] urlBytes) Adds an encoded LDAPv3 URL to this Referral.booleanCompares this Referral implementation to see if it is the same as another.Gets an unmodifiable set of alternative referral urls.Collection<byte[]> Gets an unmodifiable set of encoded referral urls.intinthashCode()voidremoveLdapUrl(String url) Removes an LDAPv3 URL to this Referral.voidsetReferralLength(int referralLength) Set the length of the referraltoString()Get a String representation of a Referral
-
Constructor Details
-
ReferralImpl
public ReferralImpl()
-
-
Method Details
-
getReferralLength
public int getReferralLength()- Specified by:
getReferralLengthin interfaceReferral- Returns:
- The total length of the Referral
-
setReferralLength
public void setReferralLength(int referralLength) Set the length of the referral- Specified by:
setReferralLengthin interfaceReferral- Parameters:
referralLength- The total length of the Referral
-
getLdapUrls
Gets an unmodifiable set of alternative referral urls.- Specified by:
getLdapUrlsin interfaceReferral- Returns:
- the alternative url objects.
-
getLdapUrlsBytes
Gets an unmodifiable set of encoded referral urls.- Specified by:
getLdapUrlsBytesin interfaceReferral- Returns:
- the encoded url objects.
-
addLdapUrl
Adds an LDAPv3 URL to this Referral.- Specified by:
addLdapUrlin interfaceReferral- Parameters:
url- the LDAPv3 URL to add
-
addLdapUrlBytes
public void addLdapUrlBytes(byte[] urlBytes) Adds an encoded LDAPv3 URL to this Referral.- Specified by:
addLdapUrlBytesin interfaceReferral- Parameters:
urlBytes- the encoded LDAPv3 URL to add
-
removeLdapUrl
Removes an LDAPv3 URL to this Referral.- Specified by:
removeLdapUrlin interfaceReferral- Parameters:
url- the LDAPv3 URL to remove
-
hashCode
-
equals
Compares this Referral implementation to see if it is the same as another. The classes do not have to be the same implementation to return true. Both this and the compared Referral must have the same entries exactly. The order of Referral URLs does not matter. -
toString
-