directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r164361 - in /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo: BindRequestPOJO.java ControlsPOJO.java LdapMessagePOJO.java LdapResultPOJO.java SaslAuthenticationPOJO.java SimpleAuthenticationPOJO.java
Date Sat, 23 Apr 2005 07:51:49 GMT
Author: elecharny
Date: Sat Apr 23 00:51:41 2005
New Revision: 164361

URL: http://svn.apache.org/viewcvs?rev=164361&view=rev
Log:
Added an import as AbstractPojo has moved

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResultPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/BindRequestPOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,11 +16,13 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.Asn1POJO;
 import org.apache.asn1.util.MutableString;
 
 /**
  * A BindRequest POJO. It's a sub-class of AbstractPOJO, and it implements
- * the LdapPOJO interface to be seen as a member of the LdapMessage
+ * the Asn1POJO interface to be seen as a member of the LdapMessage
  * CHOICE.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -36,7 +38,7 @@
     private MutableString      name;
 
     /** The authentication used to bind the user */
-    private LdapPOJO authentication;
+    private Asn1POJO authentication;
 
     //~ Constructors -------------------------------------------------------------------------------
 
@@ -55,18 +57,40 @@
      *
      * @return The user authentication
      */
-    public LdapPOJO getAuthentication()
+    public Asn1POJO getAuthentication()
     {
 
         return authentication;
     }
 
     /**
+     * Get the user simple authentication
+     *
+     * @return The simple user authentication
+     */
+    public SimpleAuthenticationPOJO getSimpleAuthentication()
+    {
+
+        return (SimpleAuthenticationPOJO)authentication;
+    }
+
+    /**
+     * Get the user sasl authentication
+     *
+     * @return The sasl user authentication
+     */
+    public SaslAuthenticationPOJO getSaslAuthentication()
+    {
+
+        return (SaslAuthenticationPOJO)authentication;
+    }
+
+    /**
      * Set the user authentication
      *
      * @param authentication The user authentication
      */
-    public void setAuthentication( LdapPOJO authentication )
+    public void setAuthentication( Asn1POJO authentication )
     {
         this.authentication = authentication;
     }

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/ControlsPOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
+
 /**
  * A POJO to store Controls.
  *

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapMessagePOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,6 +16,9 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
+import org.apache.asn1.Asn1POJO;
+
 /**
  * The main POJO : every Ldap Message are encapsulated in it. It has a
  * messageId and Controls.
@@ -30,7 +33,7 @@
     private int messageId;
 
     /** The request or response being carried by the message */
-    private LdapPOJO protocolOp;
+    private Asn1POJO protocolOp;
 
     /** The controls */
     private ControlsPOJO[] controls;
@@ -38,7 +41,7 @@
     //~ Constructors -------------------------------------------------------------------------------
 
     /**
-     * Creates a new LdapMessagePOJO object.
+     * Creates a new SpnegoPOJO object.
      */
     public LdapMessagePOJO()
     {
@@ -92,28 +95,49 @@
     }
 
     /**
-     * DOCUMENT ME!
+     * Get the encapsulated message.
      *
      * @return Returns the protocolOP.
      */
-    public LdapPOJO getProtocolOp()
+    public Asn1POJO getProtocolOp()
     {
-
         return protocolOp;
     }
 
     /**
+     * Get a BindResponse POJO, assuming that the caller knows that
+     * it is the LdapMessage exact type.
+     *
+     * @return Returns the BindResponse POJO.
+     */
+    public BindResponsePOJO getBindResponse()
+    {
+        return (BindResponsePOJO)protocolOp;
+    }
+
+    /**
+     * Get a BindRequest POJO, assuming that the caller knows that
+     * it is the LdapMessage exact type.
+     *
+     * @return Returns the BindRequest POJO.
+     */
+    public BindRequestPOJO getBindRequest()
+    {
+        return (BindRequestPOJO)protocolOp;
+    }
+
+    /**
      * DOCUMENT ME!
      *
      * @param protocolOp The protocolOp to set.
      */
-    public void setProtocolOP( LdapPOJO protocolOp )
+    public void setProtocolOP( Asn1POJO protocolOp )
     {
         this.protocolOp = protocolOp;
     }
 
     /**
-     * Free the LdapMessagePOJO. we have to free the Authentication,
+     * Free the SpnegoPOJO. we have to free the Authentication,
      * the ProtocolOp, the Controls and to reset members to their 
      * initial values.
      */

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResultPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResultPOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResultPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/LdapResultPOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,6 +16,7 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
 import org.apache.asn1.util.MutableString;
 
 

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SaslAuthenticationPOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,6 +16,7 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
 import org.apache.asn1.util.MutableString;
 
 

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java?rev=164361&r1=164360&r2=164361&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/pojo/SimpleAuthenticationPOJO.java
Sat Apr 23 00:51:41 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1.ldap.pojo;
 
+import org.apache.asn1.AbstractPOJO;
+
 /**
  * A POJO which stores the Simple authentication of a BindRequest.
  * 



Mime
View raw message