From 69bd2a29170d9b51ad564cafe0590f9893e8611d Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Mon, 02 May 2016 07:50:48 +0000
Subject: [PATCH] OPENDJ-2556: Avoid Servlet dependency in OpenDJ server by using grizzly-http.
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/SdkConnectionAdapter.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/SdkConnectionAdapter.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/SdkConnectionAdapter.java
index 4838d5e..e73b185 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/SdkConnectionAdapter.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/SdkConnectionAdapter.java
@@ -23,8 +23,7 @@
import java.util.LinkedHashSet;
import java.util.concurrent.atomic.AtomicInteger;
-import javax.servlet.http.HttpServletResponse;
-
+import org.forgerock.http.protocol.Status;
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.forgerock.opendj.ldap.AbstractAsynchronousConnection;
import org.forgerock.opendj.ldap.ByteString;
@@ -283,7 +282,7 @@
// At this point, we try to log the request with OK status code.
// If it was already logged, it will be a no op.
- this.clientConnection.log(HttpServletResponse.SC_OK);
+ this.clientConnection.log(Status.OK.getCode());
isClosed = true;
}
--
Gitblit v1.10.0