directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r161409 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
Date Fri, 15 Apr 2005 05:55:28 GMT
Author: elecharny
Date: Thu Apr 14 22:55:28 2005
New Revision: 161409

URL: http://svn.apache.org/viewcvs?view=rev&rev=161409
Log:
Implemented the BindResponsePOJO class

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java?view=diff&r1=161408&r2=161409
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindResponsePOJO.java
Thu Apr 14 22:55:28 2005
@@ -17,7 +17,9 @@
 package org.apache.asn1.ldap.pojo;
 
 /**
- * TODO implement this class...
+ * A BindResponse Message. Its syntax is :
+ *   BindResponse ::= messageId LdapResult [serverSaslCreds]
+ *   LdapResult ::= resultCode matchedDN errorMessage (referrals)*
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -25,6 +27,12 @@
 {
     //~ Instance fields ----------------------------------------------------------------------------
 
+    /** The LdapResult element */
+    private LdapResultPOJO ldapResult;
+
+    /** The server credentials */
+    private byte[] serverSaslCreds;
+
     //~ Constructors -------------------------------------------------------------------------------
 
     /**
@@ -36,4 +44,47 @@
     }
 
     //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * @return Returns the ldapResul.
+     */
+    public LdapResultPOJO getLdapResult()
+    {
+        return ldapResult;
+    }
+
+    /**
+     * Set the ldap result
+     * @param ldapResult The ldapResult to set.
+     */
+    public void setLdapResult( LdapResultPOJO ldapResult )
+    {
+        this.ldapResult = ldapResult;
+    }
+
+    /**
+     * @return Returns the serverSaslCreds.
+     */
+    public byte[] getServerSaslCreds()
+    {
+        return serverSaslCreds;
+    }
+
+    /**
+	 * Set the server sasl credentials
+     * @param serverSaslCreds The serverSaslCreds to set.
+     */
+    public void setServerSaslCreds( byte[] serverSaslCreds )
+    {
+        this.serverSaslCreds = serverSaslCreds;
+    }
+    
+    /**
+     * Free the POJO
+     */
+    public void free()
+    {
+        ldapResult.free();
+        serverSaslCreds = null;;
+    }
 }



Mime
View raw message