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

Matthew Swift
16.53.2013 23d2472ba3431670243ac0b12e7314728bc518dd
opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java
@@ -123,6 +123,24 @@
        }
        /**
         * Configures the connection factory using the provided JSON
         * configuration. See
         * {@link Rest2LDAP#configureConnectionFactory(JsonValue)} for a
         * detailed specification of the JSON configuration.
         *
         * @param configuration
         *            The JSON configuration.
         * @return A reference to this builder.
         * @throws IllegalArgumentException
         *             If the configuration is invalid.
         */
        public Builder configureConnectionFactory(final JsonValue configuration)
                throws IllegalArgumentException {
            connectionFactory(Rest2LDAP.configureConnectionFactory(configuration));
            return this;
        }
        /**
         * Configures the JSON to LDAP mapping using the provided JSON
         * configuration. The caller is still required to set the connection
         * factory. The configuration should look like this, excluding the
@@ -196,7 +214,7 @@
            return this;
        }
        public Builder factory(final ConnectionFactory factory) {
        public Builder connectionFactory(final ConnectionFactory factory) {
            ensureNotNull(factory);
            this.factory = factory;
            return this;
@@ -452,7 +470,7 @@
     * @throws IllegalArgumentException
     *             If the configuration is invalid.
     */
    public static ConnectionFactory connectionFactory(final JsonValue configuration)
    public static ConnectionFactory configureConnectionFactory(final JsonValue configuration)
            throws IllegalArgumentException {
        // Parse pool parameters,
        final int connectionPoolSize =