public class ReferralImpl extends java.lang.Object implements Referral
| Modifier and Type | Field and Description |
|---|---|
private int |
referralLength
The length of the referral
|
(package private) static long |
serialVersionUID |
private java.util.List<java.lang.String> |
urls
Sequence of LDAPUrls composing this Referral
|
private java.util.List<byte[]> |
urlsBytes
The encoded LdapURL
|
| Constructor and Description |
|---|
ReferralImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLdapUrl(java.lang.String url)
Adds an LDAPv3 URL to this Referral.
|
void |
addLdapUrlBytes(byte[] urlBytes)
Adds an encoded LDAPv3 URL to this Referral.
|
boolean |
equals(java.lang.Object obj)
Compares this Referral implementation to see if it is the same as
another.
|
java.util.Collection<java.lang.String> |
getLdapUrls()
Gets an unmodifiable set of alternative referral urls.
|
java.util.Collection<byte[]> |
getLdapUrlsBytes()
Gets an unmodifiable set of encoded referral urls.
|
int |
getReferralLength() |
int |
hashCode() |
void |
removeLdapUrl(java.lang.String url)
Removes an LDAPv3 URL to this Referral.
|
void |
setReferralLength(int referralLength)
Set the length of the referral
|
java.lang.String |
toString()
Get a String representation of a Referral
|
static final long serialVersionUID
private final java.util.List<java.lang.String> urls
private final java.util.List<byte[]> urlsBytes
private int referralLength
public int getReferralLength()
getReferralLength in interface Referralpublic void setReferralLength(int referralLength)
setReferralLength in interface ReferralreferralLength - The total length of the Referralpublic java.util.Collection<java.lang.String> getLdapUrls()
getLdapUrls in interface Referralpublic java.util.Collection<byte[]> getLdapUrlsBytes()
getLdapUrlsBytes in interface Referralpublic void addLdapUrl(java.lang.String url)
addLdapUrl in interface Referralurl - the LDAPv3 URL to addpublic void addLdapUrlBytes(byte[] urlBytes)
addLdapUrlBytes in interface ReferralurlBytes - the encoded LDAPv3 URL to addpublic void removeLdapUrl(java.lang.String url)
removeLdapUrl in interface Referralurl - the LDAPv3 URL to removepublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this ReferralImpl topublic java.lang.String toString()
toString in class java.lang.Object