|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.ReferralImpl
public class ReferralImpl
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.
| Constructor Summary | |
|---|---|
ReferralImpl()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReferralImpl()
| Method Detail |
|---|
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)
equals in class Objectobj - the object to compare this ReferralImpl to
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||