From 9020a676bbe359cb158e96761ef6f1a3c32c80e5 Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Tue, 10 May 2016 16:42:27 +0000
Subject: [PATCH] REST2LDAP Refactoring
---
opendj-server-legacy/src/main/java/org/opends/server/api/HttpEndpoint.java | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/HttpEndpoint.java b/opendj-server-legacy/src/main/java/org/opends/server/api/HttpEndpoint.java
index 8fea4d9..e2336d8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/HttpEndpoint.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/HttpEndpoint.java
@@ -24,6 +24,7 @@
import org.forgerock.http.HttpApplicationException;
import org.forgerock.i18n.LocalizableMessage;
import org.forgerock.opendj.server.config.server.HTTPEndpointCfg;
+import org.opends.server.core.ServerContext;
import org.opends.server.types.InitializationException;
/**
@@ -37,15 +38,21 @@
/** Configuration of this endpoint. */
protected final C configuration;
+ /** Context of this LDAP server. */
+ protected final ServerContext serverContext;
+
/**
* Create a new {@link HttpEndpoint} with the given configuration.
*
* @param configuration
- * Configuration of this {@link HttpEndpoint}.
+ * Configuration of this {@link HttpEndpoint}
+ * @param serverContext
+ * Context of this LDAP server
*/
- public HttpEndpoint(C configuration)
+ public HttpEndpoint(C configuration, ServerContext serverContext)
{
this.configuration = configuration;
+ this.serverContext = serverContext;
}
/**
--
Gitblit v1.10.0