|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ldaptemplate.support.LdapRdn
Datatype for a LDAP name, a part of a path. The name: uid=adam.skogman Key: uid Value: adam.skogman
Field Summary | |
protected static java.util.regex.Pattern |
RDN_PATTERN
|
Constructor Summary | |
LdapRdn(java.lang.String ldapRdn)
Constructs a RDN from an ldap encoded rdn "foo=bar". |
|
LdapRdn(java.lang.String key,
java.lang.String value)
Constructs a RDN from a key and a value. |
Method Summary | |
protected java.lang.String |
encodeLdap()
Encode key and value to ldap |
java.lang.Object |
encodeUrl()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getKey()
|
java.lang.String |
getLdapEncoded()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
static LdapRdn |
parse(java.lang.String rdn)
Parse the supplied String for a valid LdapRdn. |
protected void |
parseLdap(java.lang.String rdn)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.util.regex.Pattern RDN_PATTERN
Constructor Detail |
public LdapRdn(java.lang.String ldapRdn) throws BadLdapGrammarException
ldapRdn
-
BadLdapGrammarException
- If the rdn could not be parsed.public LdapRdn(java.lang.String key, java.lang.String value)
key
- Not blankvalue
- Not blankMethod Detail |
protected java.lang.String encodeLdap()
protected void parseLdap(java.lang.String rdn) throws BadLdapGrammarException
rdn
- The ldap rdn to parse
BadLdapGrammarException
public static LdapRdn parse(java.lang.String rdn)
rdn
- the String to parse.
public java.lang.String getKey()
public java.lang.String getValue()
public java.lang.String toString()
Object.toString()
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public java.lang.Object encodeUrl()
public int hashCode()
Object.hashCode()
public java.lang.String getLdapEncoded()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |