-
-/**
- * Stomp Frames are messages that are sent and received on a StompConnection.
- *
- * @package Stomp
- * @author Hiram Chirino <hiram@hiramchirino.com>
- * @author Dejan Bosanac <dejan@nighttale.net>
- * @author Michael Caplan <mcaplan@labnet.net>
- * @version $Revision: 36 $
- */
-class Stomp_Frame
-{
- public $command;
- public $headers = array();
- public $body;
-
- /**
- * Constructor
- *
- * @param string $command
- * @param array $headers
- * @param string $body
- */
- public function __construct ($command = null, $headers = null, $body = null)
- {
- $this->_init($command, $headers, $body);
- }
-
- protected function _init ($command = null, $headers = null, $body = null)
- {
- $this->command = $command;
- if ($headers != null) {
- $this->headers = $headers;
- }
- $this->body = $body;
-
- if ($this->command == 'ERROR') {
- require_once 'Stomp/Exception.php';
- throw new Stomp_Exception($this->headers['message'], 0, $this->body);
- }
+\r
+/**\r
+ * Stomp Frames are messages that are sent and received on a StompConnection.\r
+ *\r
+ * @package Stomp\r
+ * @author Hiram Chirino <hiram@hiramchirino.com>\r
+ * @author Dejan Bosanac <dejan@nighttale.net>\r
+ * @author Michael Caplan <mcaplan@labnet.net>\r
+ * @version $Revision: 36 $\r
+ */\r
+class Stomp_Frame\r
+{\r
+ public $command;\r
+ public $headers = array();\r
+ public $body;\r
+ \r
+ /**\r
+ * Constructor\r
+ *\r
+ * @param string $command\r
+ * @param array $headers\r
+ * @param string $body\r
+ */\r
+ public function __construct ($command = null, $headers = null, $body = null)\r
+ {\r
+ $this->_init($command, $headers, $body);\r
+ }\r
+ \r
+ protected function _init ($command = null, $headers = null, $body = null)\r
+ {\r
+ $this->command = $command;\r
+ if ($headers != null) {\r
+ $this->headers = $headers;\r
+ }\r
+ $this->body = $body;\r
+ \r
+ if ($this->command == 'ERROR') {\r
+ require_once 'Stomp/Exception.php';\r
+ throw new Stomp_Exception($this->headers['message'], 0, $this->body);\r
+ }\r