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

Jean-Noel Rouvignac
25.58.2013 66c134a26e114d536df67dd566e57d3ec5e8aae4
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, March 25, 2013 12:58 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, March 25, 2013 12:58 +0100
commit66c134a26e114d536df67dd566e57d3ec5e8aae4
tree fa74c6175bd4be32e78f419347a8d24e7abfc545 tree | zip | gz
parent 9ecc918cd499c4ad5ac594c0c0f2a43186996fe8 view | diff
OPENDJ-808 Implement a simple commons REST based HTTP connection handler

Added support for using the Rest2LDAP servlet from OpenDJ HTTPConnectionHandler.



HTTPConnectionHandler.java:
Added support for using the Rest2LDAP servlet + removed the FakeServlet.
Added the JSON_MAPPER constant to parse the JSON config file for Rest2LDAP.
Added getClientConnectionsMap() getter.
Added getConnectionFactory() method, heavily inspired from org.forgerock.opendj.rest2ldap.servlet.Rest2LDAPConnectionFactoryProvider.getConnectionFactory().
In startHttpServer(), silenced Grizzly logging + set the IOThreadStrategy to be single threaded + changed the access path to the servlet.

CollectClientConnectionsFilter.java:
Added support for using the Rest2LDAP servlet.
Removed clientConnections instance member, now get this value from the HTTPConnectionHandler.

config.ldif, 02-config.ldif, HTTPConnectionHandlerConfiguration.xml, HTTPConnectionHandlerCfgDefn.properties:
Added ds-cfg-config-file property to ds-cfg-http-connection-handler objectClass.

http-config.json: ADDED (copied from opendj-rest2ldap-servlet project)


ivy.xml:
Added dependencies to Rest2LDAP.

ivysettings.xml:
Added support for updating SNAPSHOTS.
1 files added
8 files modified
484 ■■■■ changed files
opends/ivy.xml 28 ●●●● diff | view | raw | blame | history
opends/ivysettings.xml 23 ●●●● diff | view | raw | blame | history
opends/resource/config/config.ldif 1 ●●●● diff | view | raw | blame | history
opends/resource/config/http-config.json 229 ●●●●● diff | view | raw | blame | history
opends/resource/schema/02-config.ldif 9 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/HTTPConnectionHandlerConfiguration.xml 26 ●●●●● diff | view | raw | blame | history
opends/src/admin/messages/HTTPConnectionHandlerCfgDefn.properties 2 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilter.java 30 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java 136 ●●●● diff | view | raw | blame | history