This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git
commit 0fb206f8405294da6d54ed9eedc3142bc0ca4f98
Author: emmanuel lecharny <emmanuel.lecharny@busit.com>
AuthorDate: Tue Sep 17 00:26:39 2019 +0200
Added a method to get back the IoSession from the core session
---
.../directory/server/core/shared/DefaultCoreSession.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
b/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
index e1361d7..043b739 100644
--- a/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
+++ b/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
@@ -169,6 +169,17 @@ public class DefaultCoreSession implements CoreSession
/**
+ * Gets the IoSession from the CoreSession. This is only useful when the server is not
embedded.
+ *
+ * @return ioSession The IoSession for this CoreSession
+ */
+ public IoSession getIoSession()
+ {
+ return ioSession;
+ }
+
+
+ /**
* Stores the IoSession into the CoreSession. This is only useful when the server is
not embedded.
*
* @param ioSession The IoSession for this CoreSession
|