|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String string)
Parse the supplied string and construct this instance accordingly. |
|
LdapRdn(String key,
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(Object obj)
Compare this LdapRdn to another object. |
String |
encodeUrl()
Get a String representation of this LdapRdn for use in urls. |
boolean |
equals(Object obj)
|
LdapRdnComponent |
getComponent()
Gets the first LdapRdnComponent of this LdapRdn. |
LdapRdnComponent |
getComponent(int idx)
Get the LdapRdnComponent at index idx . |
List |
getComponents()
Gets all components in this LdapRdn. |
String |
getKey()
Get the key of this LdapRdn. |
String |
getLdapEncoded()
Get a properly rfc2253-encoded String representation of this LdapRdn. |
String |
getValue()
Get the value of this LdapRdn. |
String |
getValue(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. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LdapRdn()
public LdapRdn(String string)
string
- the string to parse.public LdapRdn(String key, String value)
key
- the attribute name.value
- the attribute value.Method Detail |
---|
public void addComponent(LdapRdnComponent rdnComponent)
rdnComponent
- the LdapRdnComponent to add.spublic List getComponents()
public LdapRdnComponent getComponent()
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
.
IndexOutOfBoundsException
- if there are no components in this Rdn.public String getLdapEncoded()
IndexOutOfBoundsException
- if there are no components in this Rdn.public String encodeUrl()
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the object to compare to.
ClassCastException
- if the supplied object is not an LdapRdn
instance.public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String getValue()
cn=john doe+sn=doe
, the return value would be
john doe
.
IndexOutOfBoundsException
- if there are no components in this Rdn.public String getKey()
cn=john doe+sn=doe
, the return value would be
cn
.
IndexOutOfBoundsException
- if there are no components in this Rdn.public String getValue(String key)
key
- the key
IllegalArgumentException
- if there is no component with the
specified key.public LdapRdn immutableLdapRdn()
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |