public class ReferralImpl extends Object implements Referral
| Modifier and Type | Field and Description |
|---|---|
private int |
referralLength
The length of the referral
|
(package private) static long |
serialVersionUID |
private List<String> |
urls
Sequence of LDAPUrls composing this Referral
|
private List<byte[]> |
urlsBytes
The encoded LdapURL
|
| Constructor and Description |
|---|
ReferralImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLdapUrl(String url)
Adds an LDAPv3 URL to this Referral.
|
void |
addLdapUrlBytes(byte[] urlBytes)
Adds an encoded LDAPv3 URL to this Referral.
|
boolean |
equals(Object obj)
Compares this Referral implementation to see if it is the same as
another.
|
Collection<String> |
getLdapUrls()
Gets an unmodifiable set of alternative referral urls.
|
Collection<byte[]> |
getLdapUrlsBytes()
Gets an unmodifiable set of encoded referral urls.
|
int |
getReferralLength() |
int |
hashCode() |
void |
removeLdapUrl(String url)
Removes an LDAPv3 URL to this Referral.
|
void |
setReferralLength(int referralLength)
Set the length of the referral
|
String |
toString()
Get a String representation of a Referral
|
static final long serialVersionUID
private final 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 Collection<String> getLdapUrls()
getLdapUrls in interface Referralpublic Collection<byte[]> getLdapUrlsBytes()
getLdapUrlsBytes in interface Referralpublic void addLdapUrl(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(String url)
removeLdapUrl in interface Referralurl - the LDAPv3 URL to removepublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.