directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r179306 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapStatesEnum.java
Date Tue, 31 May 2005 23:40:44 GMT
Author: elecharny
Date: Tue May 31 16:40:44 2005
New Revision: 179306

URL: http://svn.apache.org/viewcvs?rev=179306&view=rev
Log:
- Added the AddResponse states
- Added a NB_GRAMMARS constant

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=179306&r1=179305&r2=179306&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
Tue May 31 16:40:44 2005
@@ -396,10 +396,13 @@
     public static final int ABANDON_REQUEST_GRAMMAR = 6;
 
     /** AddRequest Grammar */
-    public static final int ADD_REQUEST_GRAMMAR_SWITCH = 0x0800;
+    public static final int ADD_RESPONSE_GRAMMAR_SWITCH = 0x0800;
 
     /** AddRequest number */
-    public static final int ADD_REQUEST_GRAMMAR = 7;
+    public static final int ADD_RESPONSE_GRAMMAR = 7;
+    
+    /** The total number of grammars used */
+    public static final int NB_GRAMMARS = 20;
 
     //=========================================================================
     // Grammar switches debug strings 
@@ -414,8 +417,8 @@
             "BIND_REQUEST_GRAMMAR_SWITCH",
             "BIND_RESPONSE_GRAMMAR_SWITCH",
             "UNBIND_REQUEST_GRAMMAR_SWITCH",
-            "ABANDON_REQUEST_GRAMMAR_SWITCH",
-            "ADD_REQUEST_GRAMMAR_SWITCH"
+            "ABANDON_RESPONSE_GRAMMAR_SWITCH",
+            "ADD_RESPONSE_GRAMMAR_SWITCH"
         };
 
     //=========================================================================
@@ -535,8 +538,8 @@
             "ABANDON_REQUEST_MESSAGE_ID_VALUE"
         };
 
-    /** A string representation of all the Add Request states */
-    private static String[] AddRequestString =
+    /** A string representation of all the Add Response states */
+    private static String[] AddResponseString =
         new String[]
         {
             "ADD_RESPONSE_TAG", 
@@ -585,7 +588,7 @@
             case BIND_RESPONSE_GRAMMAR : return "BIND_RESPONSE_GRAMMAR";
             case UNBIND_REQUEST_GRAMMAR : return "UNBIND_REQUEST_GRAMMAR";
             case ABANDON_REQUEST_GRAMMAR : return "ABANDON_REQUEST_GRAMMAR";
-            case ADD_REQUEST_GRAMMAR : return "ADD_REQUEST_GRAMMAR";
+            case ADD_RESPONSE_GRAMMAR : return "ADD_RESPONSE_GRAMMAR";
         	default : return "UNKNOWN";
         }
     }
@@ -677,8 +680,8 @@
                 case ABANDON_REQUEST_GRAMMAR :
                     return ( ( state == GRAMMAR_END ) ? "ABANDON_REQUEST_END_STATE" : AbandonRequestString[state]
);
 
-                case ADD_REQUEST_GRAMMAR :
-                    return ( ( state == GRAMMAR_END ) ? "ADD_REQUEST_END_STATE" : AddRequestString[state]
);
+                case ADD_RESPONSE_GRAMMAR :
+                    return ( ( state == GRAMMAR_END ) ? "ADD_RESPONSE_END_STATE" : AddResponseString[state]
);
 
                 default :
                     return "UNKNOWN";



Mime
View raw message