directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208993 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sun, 03 Jul 2005 22:30:23 GMT
Author: elecharny
Date: Sun Jul  3 15:30:22 2005
New Revision: 208993

URL: http://svn.apache.org/viewcvs?rev=208993&view=rev
Log:
Added an accessor for the ExtendedResponse pojo

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=208993&r1=208992&r2=208993&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 15:30:22 2005
@@ -134,7 +134,7 @@
                 } );
 
         //********************************************************************************************
-        // If the Tag is 0x42, then it's a UnBindRequest.
+        // If the Tag is 0x42, then it's an 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.
@@ -153,7 +153,7 @@
         // 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 an ExtendedRequest.
-        // If the Tag is 0x78, then it's a 
+        // If the Tag is 0x78, then it's an ExtendedResponse.
         //********************************************************************************************
 
         //--------------------------------------------------------------------------------------------
@@ -340,6 +340,15 @@
                 LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.EXTENDED_REQUEST_GRAMMAR_SWITCH,
                 null );
 
+        //--------------------------------------------------------------------------------------------
+        // ExtendedRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... ExtendedResponse ...
+        // ExtendedResponse ::= [APPLICATION 24] SEQUENCE {
+        // We have to switch to the ExtendedResponse grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x78] = new GrammarTransition(
+                LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.EXTENDED_RESPONSE_GRAMMAR_SWITCH,
+                null );
     }
 
     //~ Methods ------------------------------------------------------------------------------------



Mime
View raw message