'Check path suffix for MIME type and path prefix for API version.'

def _path_strategy(self, host, port, path_info):

    mime_type = app = app_url = None
    parts = path_info.rsplit('.', 1)
    if (len(parts) > 1):
        possible_type = ('application/' + parts[1])
        if (possible_type in wsgi.get_supported_content_types()):
            mime_type = possible_type
    parts = path_info.split('/')
    if (len(parts) > 1):
        (possible_app, possible_app_url) = self._match(host, port, path_info)
        if (possible_app and possible_app_url):
            app_url = possible_app_url
            app = self._munge_path(possible_app, path_info, app_url)
    return (mime_type, app, app_url)
