You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/07/03 19:15:20 UTC
svn commit: r208954 -
/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Author: elecharny
Date: Sun Jul 3 10:15:17 2005
New Revision: 208954
URL: http://svn.apache.org/viewcvs?rev=208954&view=rev
Log:
Added the CompareRequest transition
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=208954&r1=208953&r2=208954&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 10:15:17 2005
@@ -149,7 +149,7 @@
// If the Tag is 0x6B, then it's a DelResponse.
// If the Tag is 0x6C, then it's a ModifyDNRequest.
// If the Tag is 0x6D, then it's a ModifyDNResponse.
- // If the Tag is 0x6E, then it's a
+ // 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
@@ -298,6 +298,16 @@
// We have to switch to the ModifyDNResponse grammar
super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6D] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.MODIFY_DN_RESPONSE_GRAMMAR_SWITCH,
+ null );
+
+ //--------------------------------------------------------------------------------------------
+ // CompareResquest Message.
+ //--------------------------------------------------------------------------------------------
+ // LdapMessage ::= ... CompareRequest ...
+ // CompareRequest ::= [APPLICATION 14] SEQUENCE {
+ // We have to switch to the CompareRequest grammar
+ super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x6E] = new GrammarTransition(
+ LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.COMPARE_REQUEST_GRAMMAR_SWITCH,
null );
//--------------------------------------------------------------------------------------------