Provides logic for walking down XML tree and pulling data.
def google.appengine.tools.dos_xml_parser.DosXmlParser.ProcessBlacklistNode |
( |
|
self, |
|
|
|
node |
|
) |
| |
Processes XML <blacklist> nodes into BlacklistEntry objects.
The following information is parsed out:
subnet: The IP, in CIDR notation.
description: (optional)
If there are no errors, the data is loaded into a BlackListEntry object
and added to a list. Upon error, a description of the error is added to
a list and the method terminates.
Args:
node: <blacklist> XML node in dos.xml.
def google.appengine.tools.dos_xml_parser.DosXmlParser.ProcessXml |
( |
|
self, |
|
|
|
xml_str |
|
) |
| |
Parses XML string and returns object representation of relevant info.
Args:
xml_str: The XML string.
Returns:
A list of BlacklistEntry objects containing information about blacklisted
IP's specified in the XML.
Raises:
AppEngineConfigException: In case of malformed XML or illegal inputs.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/dos_xml_parser.py