|
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.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(String key,
String value)
Constructs an LdapRdnComponent without decoding the value. |
|
LdapRdnComponent(String key,
String value,
boolean decodeValue)
Constructs an LdapRdnComponent, optionally decoding the value. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
Compare this instance to the supplied object. |
protected String |
encodeLdap()
Encode key and value to ldap. |
String |
encodeUrl()
Get a String representation of this instance for use in URLs. |
boolean |
equals(Object obj)
|
String |
getKey()
Get the key (Attribute name) of this component. |
String |
getLdapEncoded()
|
String |
getValue()
Get the (Attribute) value of this component. |
int |
hashCode()
|
LdapRdnComponent |
immutableLdapRdnComponent()
Create an immutable copy of this instance. |
void |
setKey(String key)
Deprecated. Using this method changes the internal state of surrounding DistinguishedName instance. This should be avoided. |
void |
setValue(String value)
Deprecated. Using this method changes the internal state of surrounding DistinguishedName instance. This should be avoided. |
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(String key, String value)
key
- the Attribute name.value
- the Attribute value.public LdapRdnComponent(String key, String value, boolean decodeValue)
Depending on the value of the "key case fold" System property, the keys will be lowercased, uppercased, or preserve their original case. Default is to convert them to lowercase.
key
- the Attribute 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.DistinguishedName.KEY_CASE_FOLD_PROPERTY
Method Detail |
---|
public String getKey()
public void setKey(String key)
key
- the key.public String getValue()
public void setValue(String value)
value
- the value.protected String encodeLdap()
public String toString()
toString
in class Object
public String getLdapEncoded()
public String encodeUrl()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the object to compare to.
ClassCastException
- if the object is not possible to cast to an
LdapRdnComponent.public LdapRdnComponent immutableLdapRdnComponent()
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |