directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r178897 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/LdapMessageGrammar.java
Date Sat, 28 May 2005 23:08:11 GMT
Author: elecharny
Date: Sat May 28 16:08:11 2005
New Revision: 178897

URL: http://svn.apache.org/viewcvs?rev=178897&view=rev
Log:
Added the AbandonRequest transition call.

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=178897&r1=178896&r2=178897&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
Sat May 28 16:08:11 2005
@@ -176,11 +176,28 @@
 
         //********************************************************************************************
         // If the Tag is 0x42, then it's a UnBindRequest. 
+        // 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 0x61, then it's a BindResponse. 
         //********************************************************************************************
         
         //--------------------------------------------------------------------------------------------
+        // UnBindRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... UnBindRequest ...
+        // unbindRequest ::= [APPLICATION 2] NULL (Tag)
+        // We have to switch to the UnBindRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x42] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.UNBIND_REQUEST_GRAMMAR_SWITCH, null);
+
+        //--------------------------------------------------------------------------------------------
+        // AbandonRequest Message.
+        //--------------------------------------------------------------------------------------------
+        // LdapMessage ::= ... AbandonRequest ...
+        // AbandonRequest ::= [APPLICATION 16] MessageID (Tag)
+        // We have to switch to the AbandonRequest grammar
+        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x50] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.ABANDON_REQUEST_GRAMMAR_SWITCH, null);
+
+        //--------------------------------------------------------------------------------------------
         // BindRequest Message.
         //--------------------------------------------------------------------------------------------
         // LdapMessage ::= ... BindRequest ...
@@ -196,12 +213,5 @@
         // We have to switch to the BindResponse grammar
         super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x61] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.BIND_RESPONSE_GRAMMAR_SWITCH, null);
 
-        //--------------------------------------------------------------------------------------------
-        // UnBindRequest Message.
-        //--------------------------------------------------------------------------------------------
-        // LdapMessage ::= ... UnBindRequest ...
-        // UnbindRequest ::= [APPLICATION 2] NULL (Tag)
-        // We have to switch to the UnBindRequest grammar
-        super.transitions[LdapStatesEnum.PROTOCOL_OP_TAG][0x42] = new GrammarTransition(
LdapStatesEnum.PROTOCOL_OP_TAG, LdapStatesEnum.UNBIND_REQUEST_GRAMMAR_SWITCH, null);
     }
 }



Mime
View raw message