directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208982 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sun, 03 Jul 2005 21:41:52 GMT
Author: elecharny
Date: Sun Jul  3 14:41:52 2005
New Revision: 208982

URL: http://svn.apache.org/viewcvs?rev=208982&view=rev
Log:
Added the transition for ExtendedRequest

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=208982&r1=208981&r2=208982&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
Sun Jul  3 14:41:52 2005
@@ -137,7 +137,7 @@
         // If the Tag is 0x42, then it's a UnBindRequest.
         // If the Tag is 0x4A, then it's a DelRequest.
         // If the Tag is 0x50, then it's an AbandonRequest.
-        // If the Tag is 0x60, then it's a BindRequest. Nothing to do while the length is
not checked.
+        // If the Tag is 0x60, then it's a BindRequest.
         // If the Tag is 0x61, then it's a BindResponse.
         // If the Tag is 0x63, then it's a SearchRequest.
         // If the Tag is 0x64, then it's a SearchResultEntry.
@@ -152,7 +152,7 @@
         // If the Tag is 0x6E, then it's a CompareRequest
         // If the Tag is 0x6F, then it's a CompareResponse.
         // If the Tag is 0x73, then it's a SearchResultReference.
-        // If the Tag is 0x77, then it's a 
+        // If the Tag is 0x77, then it's an ExtendedRequest.
         // If the Tag is 0x78, then it's a 
         //********************************************************************************************
 
@@ -328,6 +328,16 @@
         // We have to switch to the SearchResultReference grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x73] = new GrammarTransition(
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.SEARCH_RESULT_REFERENCE_GRAMMAR_SWITCH,
+                null );
+
+        //--------------------------------------------------------------------------------------------
+        // ExtendedRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... ExtendedRequest ...
+        // ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
+        // We have to switch to the ExtendedRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x77] = new GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.EXTENDED_REQUEST_GRAMMAR_SWITCH,
                 null );
 
     }



Mime
View raw message