directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r227093 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Tue, 02 Aug 2005 22:25:17 GMT
Author: elecharny
Date: Tue Aug  2 15:25:13 2005
New Revision: 227093

URL: http://svn.apache.org/viewcvs?rev=227093&view=rev
Log:
Added the transition to the Control grammar

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java?rev=227093&r1=227092&r2=227093&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Tue Aug  2 15:25:13 2005
@@ -351,6 +351,17 @@
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][LdapConstants.EXTENDED_RESPONSE_TAG]
= new GrammarTransition(
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.EXTENDED_RESPONSE_GRAMMAR_SWITCH,
                 null );
+        
+        //--------------------------------------------------------------------------------------------
+        // Controls
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... extendedResp    ExtendedResponse },
+        //                 controls [0] Controls OPTIONAL }
+        // 
+        // We have to switch to the Controls grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][LdapConstants.CONTROLS_TAG] = new
GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.LDAP_CONTROL_GRAMMAR_SWITCH,
+                null );
     }
 
     //~ Methods ------------------------------------------------------------------------------------



Mime
View raw message