Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 24799 invoked from network); 3 Jul 2005 22:30:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2005 22:30:27 -0000 Received: (qmail 21423 invoked by uid 500); 3 Jul 2005 22:30:26 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 21399 invoked by uid 500); 3 Jul 2005 22:30:26 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 21386 invoked by uid 99); 3 Jul 2005 22:30:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jul 2005 15:30:26 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 03 Jul 2005 15:30:28 -0700 Received: (qmail 24788 invoked by uid 65534); 3 Jul 2005 22:30:23 -0000 Message-ID: <20050703223023.24787.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 ------------------------------------------------------------------------------------