|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.core.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()
Get a String representation of this instance for use in URLs. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKey()
Get the key (Attribute name) of this component. |
java.lang.String |
getLdapEncoded()
|
java.lang.String |
getValue()
Get the (Attribute) value of this component. |
int |
hashCode()
|
void |
setKey(java.lang.String key)
Set the key (Attribute name) of this component. |
void |
setValue(java.lang.String value)
Set the (Attribute) value of this component. |
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)
key
- the key.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value.protected java.lang.String encodeLdap()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLdapEncoded()
public java.lang.String encodeUrl()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
obj
- 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 |