App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.dos_xml_parser.DosXmlParser Class Reference
Inheritance diagram for google.appengine.tools.dos_xml_parser.DosXmlParser:

Public Member Functions

def ProcessXml
 
def ProcessBlacklistNode
 

Public Attributes

 blacklist_entries
 
 errors
 

Detailed Description

Provides logic for walking down XML tree and pulling data.

Member Function Documentation

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: