directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r239357 - in /directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap: codec/ pojo/
Date Tue, 23 Aug 2005 06:07:13 GMT
Author: elecharny
Date: Mon Aug 22 23:06:59 2005
New Revision: 239357

URL: http://svn.apache.org/viewcvs?rev=239357&view=rev
Log:
- Added a getMessageType to ease the implementation of the Transformer. It will be usefull
also in the Proxy.
- Declared the constants that describe those types

Modified:
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/LdapConstants.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AbandonRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/LdapMessage.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyResponse.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchRequest.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultDone.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultReference.java
    directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/UnBindRequest.java

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/LdapConstants.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/LdapConstants.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/LdapConstants.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/codec/LdapConstants.java
Mon Aug 22 23:06:59 2005
@@ -93,4 +93,26 @@
     public static final int APPROX_MATCH_FILTER_TAG             = 0xA8;
     public static final int EXTENSIBLE_MATCH_FILTER_TAG         = 0xA9;
     
+    // The messages types
+    public static final int ABANDON_REQUEST         = 0;
+    public static final int ADD_REQUEST             = 1;
+    public static final int ADD_RESPONSE            = 2;
+    public static final int BIND_REQUEST            = 3;
+    public static final int BIND_RESPONSE           = 4;
+    public static final int COMPARE_REQUEST         = 5;
+    public static final int COMPARE_RESPONSE        = 6;
+    public static final int DEL_REQUEST             = 7;
+    public static final int DEL_RESPONSE            = 8;
+    public static final int EXTENDED_REQUEST        = 9;
+    public static final int EXTENDED_RESPONSE       = 10;
+    public static final int MODIFYDN_REQUEST        = 11;
+    public static final int MODIFYDN_RESPONSE       = 12;
+    public static final int MODIFY_REQUEST          = 13;
+    public static final int MODIFY_RESPONSE         = 14;
+    public static final int SEARCH_REQUEST          = 15;
+    public static final int SEARCH_RESULT_DONE      = 16;
+    public static final int SEARCH_RESULT_ENTRY     = 17;
+    public static final int SEARCH_RESULT_REFERENCE = 18;
+    public static final int UNBIND_REQUEST          = 19;
+    public static final int UNKNOWN                 = -1; // Just in case ...
 }

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AbandonRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AbandonRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AbandonRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AbandonRequest.java
Mon Aug 22 23:06:59 2005
@@ -61,6 +61,16 @@
     }
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.ABANDON_REQUEST;
+    }
+
+    /**
      * Set the abandonned message ID
      *
      * @param messageId The messageID to set.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddRequest.java
Mon Aug 22 23:06:59 2005
@@ -102,6 +102,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.ADD_REQUEST;
+    }
+
+    /**
      * Initialize the ArrayList for attributes.
      */
     public void initAttributes()

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/AddResponse.java
Mon Aug 22 23:06:59 2005
@@ -44,6 +44,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.ADD_RESPONSE;
+    }
+
+    /**
      * Compute the AddResponse length
      * 
      * AddResponse :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindRequest.java
Mon Aug 22 23:06:59 2005
@@ -63,6 +63,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.BIND_REQUEST;
+    }
+
+    /**
      * Get the user authentication
      *
      * @return The user authentication

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/BindResponse.java
Mon Aug 22 23:06:59 2005
@@ -57,6 +57,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.BIND_RESPONSE;
+    }
+
+    /**
      * @return Returns the serverSaslCreds.
      */
     public OctetString getServerSaslCreds()

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareRequest.java
Mon Aug 22 23:06:59 2005
@@ -77,6 +77,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.COMPARE_REQUEST;
+    }
+
+    /**
      * Get the entry to be compared
      *
      * @return Returns the entry.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/CompareResponse.java
Mon Aug 22 23:06:59 2005
@@ -44,6 +44,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.COMPARE_RESPONSE;
+    }
+
+    /**
      * Compute the CompareResponse length
      * 
      * CompareResponse :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelRequest.java
Mon Aug 22 23:06:59 2005
@@ -51,6 +51,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.DEL_REQUEST;
+    }
+
+    /**
      * Get the entry to be deleted
      *
      * @return Returns the entry.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/DelResponse.java
Mon Aug 22 23:06:59 2005
@@ -42,6 +42,16 @@
     }
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.DEL_RESPONSE;
+    }
+
+    /**
      * Compute the DelResponse length
      * 
      * DelResponse :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedRequest.java
Mon Aug 22 23:06:59 2005
@@ -60,6 +60,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.EXTENDED_REQUEST;
+    }
+
+    /**
      * Get the extended request name
      *
      * @return Returns the request name.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ExtendedResponse.java
Mon Aug 22 23:06:59 2005
@@ -61,6 +61,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.EXTENDED_RESPONSE;
+    }
+
+    /**
      * Get the extended response name
      *
      * @return Returns the name.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/LdapMessage.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/LdapMessage.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/LdapMessage.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/LdapMessage.java
Mon Aug 22 23:06:59 2005
@@ -35,7 +35,7 @@
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class LdapMessage extends Asn1Object
+public abstract class LdapMessage extends Asn1Object
 {
     //~ Instance fields ----------------------------------------------------------------------------
 
@@ -131,6 +131,16 @@
     public void setMessageId( int messageId )
     {
         this.messageId = messageId;
+    }
+
+    /**
+     * Get the message ID
+     *
+     * @return The message ID
+     */
+    public int getMessageType()
+    {
+    	return LdapConstants.UNKNOWN;
     }
 
     /**

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNRequest.java
Mon Aug 22 23:06:59 2005
@@ -70,6 +70,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.MODIFYDN_REQUEST;
+    }
+
+    /**
      * Get the modification's DN
      * @return Returns the entry.
      */

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyDNResponse.java
Mon Aug 22 23:06:59 2005
@@ -42,6 +42,16 @@
     }
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.MODIFYDN_RESPONSE;
+    }
+
+    /**
      * Compute the ModifyDNResponse length
      * 
      * ModifyDNResponse :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyRequest.java
Mon Aug 22 23:06:59 2005
@@ -114,6 +114,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.MODIFY_REQUEST;
+    }
+
+    /**
      * Initialize the ArrayList for modifications.
      */
     public void initModifications()

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyResponse.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyResponse.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/ModifyResponse.java
Mon Aug 22 23:06:59 2005
@@ -42,6 +42,16 @@
     }
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.MODIFY_RESPONSE;
+    }
+
+    /**
      * Compute the ModifyResponse length
      * 
      * ModifyResponse :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchRequest.java
Mon Aug 22 23:06:59 2005
@@ -95,6 +95,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.SEARCH_REQUEST;
+    }
+
+    /**
      * Get the list of attributes
      *
      * @return Returns the attributes.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultDone.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultDone.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultDone.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultDone.java
Mon Aug 22 23:06:59 2005
@@ -44,6 +44,16 @@
     }
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.SEARCH_RESULT_DONE;
+    }
+
+    /**
      * Compute the SearchResultDone length
      * 
      * SearchResultDone :

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultEntry.java
Mon Aug 22 23:06:59 2005
@@ -100,6 +100,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.SEARCH_RESULT_ENTRY;
+    }
+
+    /**
      * Get the entry DN
      *
      * @return Returns the objectName.

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultReference.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultReference.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultReference.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/SearchResultReference.java
Mon Aug 22 23:06:59 2005
@@ -59,6 +59,16 @@
     //~ Methods ------------------------------------------------------------------------------------
 
     /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.SEARCH_RESULT_REFERENCE;
+    }
+
+    /**
      * Add a new reference to the list.
      * @param searchResultReference The search result reference
     */

Modified: directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/UnBindRequest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/UnBindRequest.java?rev=239357&r1=239356&r2=239357&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/UnBindRequest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/apache2-provider/src/java/main/org/apache/asn1new/ldap/pojo/UnBindRequest.java
Mon Aug 22 23:06:59 2005
@@ -46,6 +46,17 @@
     }
 
     //~ Methods ------------------------------------------------------------------------------------
+
+    /**
+     * Get the message type
+     *
+     * @return Returns the type.
+     */
+    public int getMessageType()
+    {
+        return LdapConstants.UNBIND_REQUEST;
+    }
+
     /**
      * Compute the UnBindRequest length
      * 



Mime
View raw message