|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.support.LdapRdn
public class LdapRdn
Datatype for a LDAP name, a part of a path. The name: uid=adam.skogman Key: uid Value: adam.skogman
| Constructor Summary | |
|---|---|
LdapRdn()
Default constructor. |
|
LdapRdn(java.lang.String string)
Parse the supplied string and construct this instance accordingly. |
|
LdapRdn(java.lang.String key,
java.lang.String value)
Construct an LdapRdn using the supplied key and value. |
|
| Method Summary | |
|---|---|
void |
addComponent(LdapRdnComponent rdnComponent)
Add an LdapRdnComponent to this LdapRdn. |
int |
compareTo(java.lang.Object obj)
Compare this LdapRdn to another object. |
java.lang.String |
encodeUrl()
Get a String representation of this LdapRdn for use in urls. |
boolean |
equals(java.lang.Object obj)
|
LdapRdnComponent |
getComponent()
Gets the first LdapRdnComponent of this LdapRdn. |
LdapRdnComponent |
getComponent(int idx)
Get the LdapRdnComponent at index idx. |
java.util.List |
getComponents()
Gets all components in this LdapRdn. |
java.lang.String |
getLdapEncoded()
Get a properly rfc2253-encoded String representation to this LdapRdn. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapRdn()
public LdapRdn(java.lang.String string)
string - the string to parse.
public LdapRdn(java.lang.String key,
java.lang.String value)
key - value - | Method Detail |
|---|
public void addComponent(LdapRdnComponent rdnComponent)
rdnComponent - the LdapRdnComponent to add.spublic java.util.List getComponents()
public LdapRdnComponent getComponent()
java.lang.IndexOutOfBoundsException - if no components have been added.public LdapRdnComponent getComponent(int idx)
idx.
idx - the 0-based index of the component to get.
idx.
java.lang.IndexOutOfBoundsException - if no component exists at index idx.public java.lang.String getLdapEncoded()
public java.lang.String encodeUrl()
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object to compare to.
java.lang.ClassCastException - if the supplied object is not an LdapRdn instance.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||