mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
18.52.2013 5bb6c450fbf04361e37a0fc1de2a7220de00e8ee
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, October 18, 2013 17:52 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, October 18, 2013 17:52 +0200
commit5bb6c450fbf04361e37a0fc1de2a7220de00e8ee
tree ea669833eac80d4a64047e5ac372e16d2bd27592 tree | zip | gz
parent fe1d872d19df840beddc7b718cb48debf2e34bd3 view | diff
Fix OPENDJ-41: Expose LDAP Grizzly filter APIs
This a a part of OPENDJ-175 - Decouple OpenDJ LDAP SDK from Grizzly
CR2491

* In GrizzlyLDAPListener and GrizzlyLDAPConnectionFactory classes :
- Default filter chain used for processing is built from transport instead of building it from scratch.
- Additional Grizzly filters can be provided by using transport argument passed to constructors (no change implied)
- Additional Grizzly filters are added between Transport filter and LDAP filter

* Add a new utility class GrizzlyUtils that provides buildFilterChain and addFilterToConnection methods
Use the utility class to factorize code to add a filter to the filter chain in LDAPServerFilter and GrizzlyLDAPConnection classes

* Add test case for the new GrizzlyUtils class
4 files modified
2 files added
302 ■■■■ changed files
opendj-sdk/opendj3/opendj-grizzly/src/main/java/com/forgerock/opendj/grizzly/GrizzlyLDAPConnection.java 21 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-grizzly/src/main/java/com/forgerock/opendj/grizzly/GrizzlyLDAPConnectionFactory.java 5 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-grizzly/src/main/java/com/forgerock/opendj/grizzly/GrizzlyLDAPListener.java 16 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-grizzly/src/main/java/com/forgerock/opendj/grizzly/GrizzlyUtils.java 126 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-grizzly/src/main/java/com/forgerock/opendj/grizzly/LDAPServerFilter.java 21 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj3/opendj-grizzly/src/test/java/com/forgerock/opendj/grizzly/GrizzlyUtilsTestCase.java 113 ●●●●● diff | view | raw | blame | history