public class ReferralImpl extends Object implements Referral
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
|
public ReferralImpl()
public int getReferralLength()
getReferralLength
in interface Referral
public void setReferralLength(int referralLength)
setReferralLength
in interface Referral
referralLength
- The total length of the Referralpublic Collection<String> getLdapUrls()
getLdapUrls
in interface Referral
public Collection<byte[]> getLdapUrlsBytes()
getLdapUrlsBytes
in interface Referral
public void addLdapUrl(String url)
addLdapUrl
in interface Referral
url
- the LDAPv3 URL to addpublic void addLdapUrlBytes(byte[] urlBytes)
addLdapUrlBytes
in interface Referral
urlBytes
- the encoded LDAPv3 URL to addpublic void removeLdapUrl(String url)
removeLdapUrl
in interface Referral
url
- the LDAPv3 URL to removepublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.