You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/06 15:59:27 UTC

svn commit: r526169 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java

Author: elecharny
Date: Fri Apr  6 06:59:26 2007
New Revision: 526169

URL: http://svn.apache.org/viewvc?view=rev&rev=526169
Log:
Added a toString() method
Added a constructor with arguments

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java?view=diff&rev=526169&r1=526168&r2=526169
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindServiceContext.java Fri Apr  6 06:59:26 2007
@@ -34,6 +34,16 @@
     private LdapDN unbindDn;
 
     /**
+     * Creates a new instance of UnbindServiceContext.
+     *
+     * @param unbindDn The principal DN to unbind
+     */
+    public UnbindServiceContext( LdapDN unbindDn )
+    {
+        this.unbindDn = unbindDn;
+    }
+    
+    /**
      * @return The Principal's DN
      */
     public LdapDN getUnbindDn()
@@ -49,5 +59,13 @@
     public void setBindDn( LdapDN unbindDn )
     {
         this.unbindDn = unbindDn;
+    }
+    
+    /**
+     * @see Object#toString()
+     */
+    public String toString()
+    {
+        return "UnbindContext for DN '" + unbindDn.getUpName() + "'";
     }
 }