directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r178896 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Date Sat, 28 May 2005 23:07:22 GMT
Author: elecharny
Date: Sat May 28 16:07:21 2005
New Revision: 178896

URL: http://svn.apache.org/viewcvs?rev=178896&view=rev
Log:
Added the AbandonRequest tags, plus some javaDoc fixes

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java?rev=178896&r1=178895&r2=178896&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Sat May 28 16:07:21 2005
@@ -75,13 +75,13 @@
     /** The BindRequest Tag */
     public static int BIND_REQUEST_TAG = 0;
 
-    /** BIND_REQUEST Length */
+    /** The BindRequest Length */
     public static int BIND_REQUEST_LENGTH = 1;
 
     /** The BindRequest Value */
     public static int BIND_REQUEST_VALUE = 2;
 
-    /**  Version Tag */
+    /** Version Tag */
     public static int BIND_REQUEST_VERSION_TAG = 3;
 
     /** Version Length */
@@ -154,12 +154,28 @@
     /** The UnBindRequest Tag */
     public static int UNBIND_REQUEST_TAG = 0;
 
-    /** UNBIND_REQUEST Length */
+    /** The UnBindRequest Length */
     public static int UNBIND_REQUEST_LENGTH = 1;
 
     /** The unbind request last state */
     public static int LAST_UNBIND_REQUEST_STATE = 2;
 
+    // AbandonRequest ============================================================
+    /** The abandon request init state */
+    private static int ABANDON_REQUEST_STATE = 0;
+
+    /** The abandon request Tag */
+    public static int ABANDON_REQUEST_MESSAGE_ID_TAG = 0;
+
+    /** The abandon request Length */
+    public static int ABANDON_REQUEST_MESSAGE_ID_LENGTH = 1;
+
+    /** The abandon request Value */
+    public static int ABANDON_REQUEST_MESSAGE_ID_VALUE = 2;
+
+    /** The abandon request last state */
+    public static int LAST_ABANDON_REQUEST_STATE = 3;
+
     // Controls ===============================================================
     /** The ldap control init state */
     private static int LDAP_CONTROL_STATE = 0;
@@ -341,6 +357,12 @@
     /** UnBindRequest number */
     public static final int UNBIND_REQUEST_GRAMMAR = 5;
 
+    /** AbandonRequest Grammar */
+    public static final int ABANDON_REQUEST_GRAMMAR_SWITCH = 0x0700;
+
+    /** AbandonRequest number */
+    public static final int ABANDON_REQUEST_GRAMMAR = 6;
+
     /** A string representation of grammars */
     private static String[] GrammarSwitchString =
         new String[]
@@ -350,7 +372,8 @@
             "LDAP_CONTROL_GRAMMAR_SWITCH", 
             "BIND_REQUEST_GRAMMAR_SWITCH",
             "BIND_RESPONSE_GRAMMAR_SWITCH",
-            "UNBIND_REQUEST_GRAMMAR_SWITCH"
+            "UNBIND_REQUEST_GRAMMAR_SWITCH",
+            "ABANDON_REQUEST_GRAMMAR_SWITCH"
         };
 
     /** A string representation of all the states */
@@ -455,8 +478,16 @@
         new String[]
         {
             "UNBIND_REQUEST_TAG", 
-            "UNBIND_REQUEST_LENGTH", 
-            "UNBIND_REQUEST_VALUE",
+            "UNBIND_REQUEST_LENGTH" 
+        };
+
+    /** A string representation of all the Abandon Request states */
+    private static String[] AbandonRequestString =
+        new String[]
+        {
+            "ABANDON_REQUEST_MESSAGE_ID_TAG",
+            "ABANDON_REQUEST_MESSAGE_ID_LENGTH",
+            "ABANDON_REQUEST_MESSAGE_ID_VALUE"
         };
 
     /** The instance */
@@ -521,6 +552,9 @@
 
                 case UNBIND_REQUEST_GRAMMAR :
                     return ( ( state == -1 ) ? "END_STATE" : UnBindRequestString[state] );
+
+                case ABANDON_REQUEST_GRAMMAR :
+                    return ( ( state == -1 ) ? "END_STATE" : AbandonRequestString[state]
);
 
                 default :
                     return "UNKNOWN";



Mime
View raw message