'Processes files according to filetype.'

def ProcessStaticFilesNode(self, node):

    for sub_node in xml_parser_utils.GetNodes(node, 'include'):
        path = xml_parser_utils.GetAttribute(sub_node, 'path').strip()
        expiration = xml_parser_utils.GetAttribute(sub_node, 'expiration').strip()
        static_file_include = StaticFileInclude(path, expiration, {})
        for http_header_node in xml_parser_utils.GetNodes(sub_node, 'http-header'):
            name = xml_parser_utils.GetAttribute(http_header_node, 'name')
            value = xml_parser_utils.GetAttribute(http_header_node, 'value')
            if (name in static_file_include.http_headers):
                self.errors.append(('Headers    can    only    be    entered    once;    %s    entered    more    than    once' % name))
            static_file_include.http_headers[name] = value
        self.app_engine_web_xml.static_file_includes.append(static_file_include)
    for sub_node in xml_parser_utils.GetNodes(node, 'exclude'):
        path = xml_parser_utils.GetAttribute(sub_node, 'path').strip()
        self.app_engine_web_xml.static_file_excludes.append(path)
