|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.ldif.support.DefaultAttributeValidationPolicy
public class DefaultAttributeValidationPolicy
Ensures the buffer represents a valid attribute as defined by RFC2849. Meets the standards imposed by RFC 2849 for the "LDAP Data Interchange Format (LDIF) - Technical Specification". Special attention is called to URL support: RFC 2849 requires that LDIFs support URLs as defined in 1738; however, RFC 1738 has been updated by several RFCs including RFC 1808, RFC 2396, and RFC 3986 (which obsoleted the formers). Unsupported features of this implementation of URL identification include query strings and fragments in HTTP URLs.
Constructor Summary | |
---|---|
DefaultAttributeValidationPolicy()
Default constructor. |
|
DefaultAttributeValidationPolicy(boolean ordered)
Constructor for indicating whether or not attribute values should be ordered alphabetically. |
Method Summary | |
---|---|
Attribute |
parse(String buffer)
Validates attribute contained in the buffer and returns an LdapAttribute. |
void |
setOrdered(boolean ordered)
Indicates whether or not the attribute values should be ordered alphabetically. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAttributeValidationPolicy()
public DefaultAttributeValidationPolicy(boolean ordered)
ordered
- value.Method Detail |
---|
public void setOrdered(boolean ordered)
ordered
- value.public Attribute parse(String buffer)
Ensures attributes meets one of three prescribed patterns for valid attributes:
Upon success an LdapAttribute object is returned.
parse
in interface AttributeValidationPolicy
buffer
- Buffer containing the line parsed from the resource.
InvalidAttributeFormatException
- if the attribute does not meet one of the three patterns above
or the attribute cannot be parsed.
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |