[
http://issues.apache.org/jira/browse/COCOON-1066?page=comments#action_12365753
]
Antonio Fiol commented on COCOON-1066:
--------------------------------------
Yes. Luckily, you are wrong. ;-)
I also wondered about that. I even thought that having an attribute added, I
should construct several instances of AttributesImpl... until I discovered this
code around line :
protected void start(String name, AttributesImpl attr) throws SAXException {
super.contentHandler.startElement("", name, name, attr);
attr.clear();
}
... which is quite a clever approach, as the AttributesImpl is no longer needed
once the startElement method of the contentHandler is called.
http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/helpers/AttributesImpl.html#clear()
> [PATCH] LDAPTransformer enhancements
> ------------------------------------
>
> Key: COCOON-1066
> URL: http://issues.apache.org/jira/browse/COCOON-1066
> Project: Cocoon
> Type: Improvement
> Components: Blocks: Naming
> Versions: 2.1.8
> Environment: Operating System: All
> Platform: All
> Reporter: David L. Day
> Assignee: Jean-Baptiste Quenot
> Priority: Minor
> Attachments: LDAPTransformer.java.diff, LDAPTransformer.java.patch
>
> This patch addresses 2 issues through the addition of 2 elements in the
> LDAPTransformer (LDAPTransformer.java):
> dn-element:
> Provide element containing the DN for each entry returned in 'execute-query'.
> This is accomplished via 'dn-element' element that defaults to 'dn'. This
> element is only valid in 'execute-query'.
> securityprotocol:
> Provide a mechanism for those using JDK prior to 1.4.2 to access LDAP via
> SSL.
> This is accomplished via an optional 'securityprotocol' element that is empty
> (unused) by default. Please see
> http://java.sun.com/products/jndi/tutorial/ldap/security/ssl.html for more
> information on the JDK differences WRT LDAP via SSL.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira