|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.core.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 |
getKey()
Get the key of this LdapRdn. |
java.lang.String |
getLdapEncoded()
Get a properly rfc2253-encoded String representation of this LdapRdn. |
java.lang.String |
getValue()
Get the value of this LdapRdn. |
java.lang.String |
getValue(java.lang.String key)
Get the value of the LdapComponent with the specified key (Attribute name). |
int |
hashCode()
|
LdapRdn |
immutableLdapRdn()
Create an immutable copy of this instance. |
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 - the attribute name.value - the attribute 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 there are no components in this Rdn.public LdapRdnComponent getComponent(int idx)
idx.
idx - the 0-based index of the component to get.
idx.
java.lang.IndexOutOfBoundsException - if there are no components in this Rdn.public java.lang.String getLdapEncoded()
java.lang.IndexOutOfBoundsException - if there are no components in this Rdn.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.Objectpublic java.lang.String getValue()
cn=john doe+sn=doe, the return value would be
john doe.
java.lang.IndexOutOfBoundsException - if there are no components in this Rdn.public java.lang.String getKey()
cn=john doe+sn=doe, the return value would be
cn.
java.lang.IndexOutOfBoundsException - if there are no components in this Rdn.public java.lang.String getValue(java.lang.String key)
key - the key
java.lang.IllegalArgumentException - if there is no component with the
specified key.public LdapRdn immutableLdapRdn()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||