]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php
Continued with refacturing:
[hub.git] / application / hub / main / filter / tags / answer / class_PackageAnnouncementAnswerTagFilter.php
index d2037ad7fc56e88af3ed048faec659f5fc07b979..b355d51f00067bdc8b4782d8d9ec304a888bf9b2 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A AnnouncementAnswerTag filter for Package
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -33,13 +33,11 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
 
                // Init array
                $this->dataXmlNodes = array(
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_EXTERNAL_IP   => '',
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_INTERNAL_IP   => '',
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_STATUS   => '',
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID    => '',
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_TCP_PORT      => 9060,
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_UDP_PORT      => 9060,
-                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_ANSWER_STATUS => '',
+                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_EXTERNAL_ADDRESS => '',
+                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_INTERNAL_ADDRESS => '',
+                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_STATUS      => '',
+                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID       => '',
+                       BaseXmlAnswerTemplateEngine::ANSWER_STATUS                              => '',
                );
        }
 
@@ -73,21 +71,13 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         * Processes the given raw message content. The method renderXmlContent
         * may throw (not the method itself) several exceptions:
         *
-        * InvalidXmlNodeException  - If an invalid XML node has been found (e.g.
-        *                            wrong/out-dated template used)
-        * XmlNodeMismatchException - Again might be caused by invalid XML node
-        *                            usage
-        * XmlParserException       - If the XML message is damaged or not
-        *                            well-formed
-        *
         * @param       $messageContent         Raw message content
         * @param       $packageInstance        An instance of a Receivable class
         * @return      void
-        * @todo        Exceptions from renderXmlContent() are currently unhandled
         */
        public function processMessage ($messageContent, Receivable $packageInstance) {
                // Process message in generic way
-               $this->genericProcessMessage('announcement_answer', $messageContent, $packageInstance)
+               $this->genericProcessMessage('announcement_answer', $messageContent, $packageInstance);
        }
 }