|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.support.LdapRdnComponent
public class LdapRdnComponent
Represents part of an LdapRdn. As specified in RFC2253 an LdapRdn may be composed of several attributes, separated by "+". An LdapRdnComponent represents one of these attributes.
| Field Summary | |
|---|---|
static boolean |
DONT_DECODE_VALUE
|
| Constructor Summary | |
|---|---|
LdapRdnComponent(java.lang.String key,
java.lang.String value)
Constructs an LdapRdnComponent without decoding the value. |
|
LdapRdnComponent(java.lang.String key,
java.lang.String value,
boolean decodeValue)
Constructs an LdapRdnComponent, optionally decoding the value. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compare this instance to the supplied object. |
protected java.lang.String |
encodeLdap()
Encode key and value to ldap |
java.lang.String |
encodeUrl()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKey()
|
java.lang.String |
getLdapEncoded()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
void |
setKey(java.lang.String key)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DONT_DECODE_VALUE
| Constructor Detail |
|---|
public LdapRdnComponent(java.lang.String key,
java.lang.String value)
key - the Atttribute name.value - the Attribute value.
public LdapRdnComponent(java.lang.String key,
java.lang.String value,
boolean decodeValue)
key - the Atttribute name.value - the Attribute value.decodeValue - if true the value is decoded (typically used
when a DN is parsed from a String), otherwise the value is
used as specified.| Method Detail |
|---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getValue()
public void setValue(java.lang.String value)
protected java.lang.String encodeLdap()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLdapEncoded()
public java.lang.String encodeUrl()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - the object to compare to.
java.lang.ClassCastException - if the object is not possible to cast to an LdapRdnComponent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||