Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 39279 invoked from network); 28 Oct 2009 14:41:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Oct 2009 14:41:43 -0000 Received: (qmail 38587 invoked by uid 500); 28 Oct 2009 14:41:43 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 38531 invoked by uid 500); 28 Oct 2009 14:41:43 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 38522 invoked by uid 99); 28 Oct 2009 14:41:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 14:41:43 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2009 14:41:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5939A238890A; Wed, 28 Oct 2009 14:41:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r830562 - /activemq/stomp/trunk/webgen/src/stomp10/specification.page Date: Wed, 28 Oct 2009 14:41:20 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091028144120.5939A238890A@eris.apache.org> Author: chirino Date: Wed Oct 28 14:41:19 2009 New Revision: 830562 URL: http://svn.apache.org/viewvc?rev=830562&view=rev Log: added a BNF for the stomp spec. Modified: activemq/stomp/trunk/webgen/src/stomp10/specification.page Modified: activemq/stomp/trunk/webgen/src/stomp10/specification.page URL: http://svn.apache.org/viewvc/activemq/stomp/trunk/webgen/src/stomp10/specification.page?rev=830562&r1=830561&r2=830562&view=diff ============================================================================== --- activemq/stomp/trunk/webgen/src/stomp10/specification.page (original) +++ activemq/stomp/trunk/webgen/src/stomp10/specification.page Wed Oct 28 14:41:19 2009 @@ -209,4 +209,45 @@ It is recommended that ERROR frames include a *content-length* header which is a byte count for the length of the message body. If a *content-length* header is included, this number of bytes should be read, regardless of whether or not there are null characters in the body. The frame still needs to be terminated with a null byte, and if a *content-length* is not specified the first null byte encountered signals the end of the frame. +###Augmented BNF + +We will use the augmented Backus-Naur Form (BNF) used in the HTTP/1.1 (rfc2616) to define a valid stomp frame: + + LF = + CHAR = + OCTET = + DIGIT = + NULL = + + frame = *( LF ) + command LF + *( header LF ) + LF + [ content ] + NULL + + command = client-command | server-command + + client-command = "SEND" + | "SUBSCRIBE" + | "UNSUBSCRIBE" + | "BEGIN" + | "COMMIT" + | "ABORT" + | "ACK" + | "DISCONNECT" + + server-command = "CONNECTED" + | "MESSAGE" + | "RECEIPT" + | "ERROR" + + header = ":" + header-name = 1* + header-value = 1* + + content = text-content | binary-content + text-content = 1* + binary-content = 1* + This spec is licensed under the [Creative Commons Attribution v2.5](http://creativecommons.org/licenses/by/2.5/) \ No newline at end of file