directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r528807 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java
Date Sat, 14 Apr 2007 13:36:33 GMT
Author: elecharny
Date: Sat Apr 14 06:36:32 2007
New Revision: 528807

URL: http://svn.apache.org/viewvc?view=rev&rev=528807
Log:
Masking getDn and setDN methods 

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java?view=diff&rev=528807&r1=528806&r2=528807
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/EmptyServiceContext.java
Sat Apr 14 06:36:32 2007
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.server.core.interceptor.context;
 
+import org.apache.directory.shared.ldap.name.LdapDN;
+
 /**
  * An EmptySuffix context used for Interceptors. It contains no data, and mask
  * the DN in AbstractServiceContext
@@ -26,7 +28,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class EmptyServiceContext  extends AbstractServiceContext
+public class EmptyServiceContext implements ServiceContext
 {
     /**
      * Creates a new instance of EmptyServiceContext.
@@ -36,6 +38,24 @@
         super();
     }
     
+    /**
+     * @return The associated DN
+     */
+    public LdapDN getDn()
+    {
+        return LdapDN.EMPTY_LDAPDN;
+    }
+    
+    /**
+     * Set the context DN
+     *
+     * @param dn The DN to set
+     */
+    public void setDn( LdapDN dn )
+    {
+        // do nothing
+    }
+
     /**
      * @see Object#toString()
      */



Mime
View raw message