From b45e7fb00a64d2fd8897a485def4296d03c39b55 Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 18 Feb 2009 14:19:40 +0000
Subject: [PATCH] Commit SASL Phase2 changes. Issue 3805. Unit tests to follow later.
---
opends/src/server/org/opends/server/api/ClientConnection.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/ClientConnection.java b/opends/src/server/org/opends/server/api/ClientConnection.java
index 2dc2816..bbe1a9e 100644
--- a/opends/src/server/org/opends/server/api/ClientConnection.java
+++ b/opends/src/server/org/opends/server/api/ClientConnection.java
@@ -31,6 +31,7 @@
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.nio.channels.Selector;
+import java.nio.channels.SocketChannel;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
@@ -45,6 +46,7 @@
import org.opends.server.core.PluginConfigManager;
import org.opends.server.core.SearchOperation;
import org.opends.server.core.networkgroups.NetworkGroup;
+import org.opends.server.extensions.RedirectingByteChannel;
import org.opends.server.loggers.debug.DebugTracer;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
@@ -1390,6 +1392,50 @@
}
+ /**
+ * Return the lowest level channel associated with a connection.
+ * This is normally the channel associated with the socket
+ * channel.
+ *
+ * @return The lowest level channel associated with a connection.
+ */
+ public RedirectingByteChannel getChannel() {
+ // By default, return null, which indicates that there should
+ // be no channel. Subclasses should override this if
+ // they want to support a channel.
+ return null;
+ }
+
+
+
+ /**
+ * Return the Socket channel associated with a connection.
+ *
+ * @return The Socket channel associated with a connection.
+ */
+ public SocketChannel getSocketChannel() {
+ // By default, return null, which indicates that there should
+ // be no socket channel. Subclasses should override this if
+ // they want to support a socket channel.
+ return null;
+ }
+
+
+
+ /**
+ * Return the largest application buffer size that should be used
+ * for a connection.
+ *
+ * @return The application buffer size.
+ */
+ public int getAppBufferSize() {
+ // By default, return 0, which indicates that there should
+ // be no application buffer size. Subclasses should override
+ //this if they want to support a application buffer size.
+ return 0;
+ }
+
+
/**
* Retrieves the size limit that will be enforced for searches
--
Gitblit v1.10.0