X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2FMessage.hpp;h=41ebe0a80acdec66bd48a9a0929b1631df33ddbb;hp=1cc89604278f7dfd07b2ce07255fd6bbe39b4bf9;hb=8b8309d46e9ccc968d3a315e86e70c5a806706d0;hpb=57040efdece4ea1f4487608de3d1afbb9d1378c8 diff --git a/include/anna/diameter/codec/Message.hpp b/include/anna/diameter/codec/Message.hpp index 1cc8960..41ebe0a 100644 --- a/include/anna/diameter/codec/Message.hpp +++ b/include/anna/diameter/codec/Message.hpp @@ -554,7 +554,7 @@ public: * * @param xmlPathFile Complete path file to the xml document which represents the diameter message */ - void loadXML(const std::string &xmlPathFile) throw(anna::RuntimeException); + void loadXMLFile(const std::string &xmlPathFile) throw(anna::RuntimeException); /** * Interpret a xml string in order to create a diameter message @@ -759,7 +759,7 @@ public: for example, the pattern '' matchs IP addresses for '10.x.10.10' where x = [0..255]. - Note that string pattern could also be generated via #loadXML and then #asXML, that is to say, you + Note that string pattern could also be generated via #loadXMLFile/#loadXMLString and then #asXML, thus, you could get patterns through xml files which act as conditional triggers over message. In that case, it is not possible to specify regular expressions within xml 'hex-data' fields because parser will fail during hexadecimal read. Normally only printable 'data' fields are used for matching issues. @@ -775,7 +775,7 @@ public: Then you could do: anna::diameter::codec::Message patternMessage; - patternMessage.loadXML("pattern.xml"); + patternMessage.loadXMLFile("pattern.xml"); std::string pattern = patternMessage.getAvp("Subscription-Id")->getAvp("Subscription-Id-Type")->asXMLString(); // Former is '' bool match = incomingMessage.isLike(pattern);