directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1064219 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
Date Thu, 27 Jan 2011 17:30:45 GMT
Author: elecharny
Date: Thu Jan 27 17:30:45 2011
New Revision: 1064219

URL: http://svn.apache.org/viewvc?rev=1064219&view=rev
Log:
Implementig the BindResponse interfaces

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java?rev=1064219&r1=1064218&r2=1064219&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/BindResponseDecorator.java
Thu Jan 27 17:30:45 2011
@@ -21,6 +21,8 @@ package org.apache.directory.shared.ldap
 
 
 import org.apache.directory.shared.ldap.model.message.BindResponse;
+import org.apache.directory.shared.ldap.model.message.BindResponseImpl;
+import org.apache.directory.shared.ldap.model.message.LdapResult;
 
 
 /**
@@ -28,7 +30,7 @@ import org.apache.directory.shared.ldap.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class BindResponseDecorator extends ResponseDecorator
+public class BindResponseDecorator extends ResponseDecorator implements BindResponse
 {
     /** The encoded bindResponse length */
     private int bindResponseLength;
@@ -71,4 +73,43 @@ public class BindResponseDecorator exten
     {
         return bindResponseLength;
     }
+
+
+    //-------------------------------------------------------------------------
+    // The BindResponse methods
+    //-------------------------------------------------------------------------
+    /**
+     * {@inheritDoc}
+     */
+    public LdapResult getLdapResult()
+    {
+        return ((BindResponseImpl)decoratedMessage).getLdapResult();
+    }
+    
+    
+    /**
+     * {@inheritDoc}
+     */
+    public byte[] getServerSaslCreds()
+    {
+        return ((BindResponseImpl)decoratedMessage).getServerSaslCreds();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void setServerSaslCreds( byte[] serverSaslCreds )
+    {
+        ((BindResponseImpl)decoratedMessage).setServerSaslCreds( serverSaslCreds );
+    }
+
+    
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return ((BindResponseImpl)decoratedMessage).toString();
+    }
 }



Mime
View raw message