directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r325846 - in /directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol: ./ support/
Date Mon, 17 Oct 2005 06:20:35 GMT
Author: trustin
Date: Sun Oct 16 23:20:13 2005
New Revision: 325846

URL: http://svn.apache.org/viewcvs?rev=325846&view=rev
Log:
Moved all MINA message handlers to support package to hide them; we need an extended operation
handler which has a similar name to ExtendedHandler

Added:
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AbandonHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AbandonHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AddHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AddHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/BindHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/BindHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/CompareHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/CompareHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/DeleteHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/DeleteHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyDnHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyDnHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/SearchHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/SearchHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java
      - copied, changed from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/UnbindHandler.java
Removed:
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AbandonHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AddHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/BindHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/CompareHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/DeleteHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyDnHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/SearchHandler.java
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/UnbindHandler.java
Modified:
    directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/LdapProtocolProvider.java

Modified: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/LdapProtocolProvider.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/LdapProtocolProvider.java?rev=325846&r1=325845&r2=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/LdapProtocolProvider.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/LdapProtocolProvider.java
Sun Oct 16 23:20:13 2005
@@ -51,6 +51,16 @@
 import org.apache.ldap.common.message.UnbindRequest;
 import org.apache.ldap.common.message.UnbindRequestImpl;
 import org.apache.ldap.common.message.spi.Provider;
+import org.apache.ldap.server.protocol.support.AbandonHandler;
+import org.apache.ldap.server.protocol.support.AddHandler;
+import org.apache.ldap.server.protocol.support.BindHandler;
+import org.apache.ldap.server.protocol.support.CompareHandler;
+import org.apache.ldap.server.protocol.support.DeleteHandler;
+import org.apache.ldap.server.protocol.support.ExtendedHandler;
+import org.apache.ldap.server.protocol.support.ModifyDnHandler;
+import org.apache.ldap.server.protocol.support.ModifyHandler;
+import org.apache.ldap.server.protocol.support.SearchHandler;
+import org.apache.ldap.server.protocol.support.UnbindHandler;
 import org.apache.mina.common.IdleStatus;
 import org.apache.mina.protocol.ProtocolCodecFactory;
 import org.apache.mina.protocol.ProtocolDecoder;

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AbandonHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AbandonHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AbandonHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AbandonHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AbandonHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AbandonHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AbandonHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,10 +14,9 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
-import org.apache.ldap.common.NotImplementedException;
 import org.apache.ldap.common.message.AbandonRequest;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AddHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AddHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AddHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AddHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AddHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/AddHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/AddHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 import javax.naming.NamingException;
 import javax.naming.ldap.LdapContext;
@@ -26,9 +26,9 @@
 import org.apache.ldap.common.message.LdapResultImpl;
 import org.apache.ldap.common.message.ResultCodeEnum;
 import org.apache.ldap.common.util.ExceptionUtils;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/BindHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/BindHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/BindHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/BindHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/BindHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/BindHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/BindHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import java.util.Hashtable;
@@ -34,23 +34,11 @@
 import org.apache.ldap.common.message.LdapResultImpl;
 import org.apache.ldap.common.message.ResultCodeEnum;
 import org.apache.ldap.common.util.ExceptionUtils;
-
-/*
- * I would like to eventually see these newly introduced dependencies
- * within the core (apacheds-core dep added to LDAP pp).  This way we
- * can still have the potential to use the PP as a pure LDAP proxy
- * server (however this might be an unlikely occurrance).  We can figure
- * this out later there are bigger issues to solve right now.
- *
- * The changes are the two lines below:
- */
-
 import org.apache.ldap.server.configuration.Configuration;
 import org.apache.ldap.server.configuration.StartupConfiguration;
-
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/CompareHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/CompareHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/CompareHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/CompareHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/CompareHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/CompareHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/CompareHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import javax.naming.NamingException;
@@ -26,9 +26,10 @@
 import org.apache.ldap.common.message.CompareResponseImpl;
 import org.apache.ldap.common.message.LdapResultImpl;
 import org.apache.ldap.common.message.ResultCodeEnum;
-import org.apache.ldap.common.util.ExceptionUtils;
 import org.apache.ldap.common.name.LdapName;
+import org.apache.ldap.common.util.ExceptionUtils;
 import org.apache.ldap.server.jndi.ServerLdapContext;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
 import org.slf4j.Logger;

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/DeleteHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/DeleteHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/DeleteHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/DeleteHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/DeleteHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/DeleteHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/DeleteHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 import javax.naming.NamingException;
 import javax.naming.directory.DirContext;
@@ -26,11 +26,11 @@
 import org.apache.ldap.common.message.LdapResultImpl;
 import org.apache.ldap.common.message.ResultCodeEnum;
 import org.apache.ldap.common.util.ExceptionUtils;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
-import org.slf4j.LoggerFactory;
 import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 
 /**

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ExtendedHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ExtendedHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import org.apache.ldap.common.message.ExtendedRequest;

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyDnHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyDnHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyDnHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyDnHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyDnHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyDnHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyDnHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import javax.naming.NamingException;
@@ -28,9 +28,9 @@
 import org.apache.ldap.common.message.ResultCodeEnum;
 import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.common.util.ExceptionUtils;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/ModifyHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/ModifyHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import javax.naming.NamingException;
@@ -28,9 +28,9 @@
 import org.apache.ldap.common.message.ModifyResponseImpl;
 import org.apache.ldap.common.message.ResultCodeEnum;
 import org.apache.ldap.common.util.ExceptionUtils;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/SearchHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/SearchHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/SearchHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/SearchHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/SearchHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/SearchHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/SearchHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,7 +14,7 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 import java.util.Collection;
 import java.util.Collections;
@@ -27,7 +27,6 @@
 import javax.naming.directory.Attribute;
 import javax.naming.directory.SearchControls;
 import javax.naming.directory.SearchResult;
-import javax.naming.ldap.LdapContext;
 
 import org.apache.ldap.common.exception.LdapException;
 import org.apache.ldap.common.message.LdapResultImpl;
@@ -40,13 +39,13 @@
 import org.apache.ldap.common.message.SearchResponseEntryImpl;
 import org.apache.ldap.common.message.SearchResponseReference;
 import org.apache.ldap.common.message.SearchResponseReferenceImpl;
+import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.common.util.ArrayUtils;
 import org.apache.ldap.common.util.ExceptionUtils;
-import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.server.jndi.ServerLdapContext;
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java
(from r325844, directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/UnbindHandler.java)
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java?p2=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java&p1=directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/UnbindHandler.java&r1=325844&r2=325846&rev=325846&view=diff
==============================================================================
--- directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/UnbindHandler.java
(original)
+++ directory/protocol-providers/ldap/trunk/src/main/java/org/apache/ldap/server/protocol/support/UnbindHandler.java
Sun Oct 16 23:20:13 2005
@@ -14,12 +14,13 @@
  *   limitations under the License.
  *
  */
-package org.apache.ldap.server.protocol;
+package org.apache.ldap.server.protocol.support;
 
 
 import javax.naming.NamingException;
 import javax.naming.ldap.LdapContext;
 
+import org.apache.ldap.server.protocol.SessionRegistry;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.handler.MessageHandler;
 



Mime
View raw message