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

Public Member Functions

def __init__
 
def configs
 
def parse_api_config_response
 
def lookup_rpc_method
 
def lookup_rest_method
 

Detailed Description

Manages loading api configs and method lookup.

Member Function Documentation

def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.configs (   self)
Return a dict with the current configuration mappings.

Returns:
  A dict with the current configuration mappings.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.lookup_rest_method (   self,
  path,
  http_method 
)
Look up the rest method at call time.

The method is looked up in self._rest_methods, the list it is saved
in for SaveRestMethod.

Args:
  path: A string containing the path from the URL of the request.
  http_method: A string containing HTTP method of the request.

Returns:
  Tuple of (<method name>, <method>, <params>)
  Where:
<method name> is the string name of the method that was matched.
<method> is the descriptor as specified in the API configuration. -and-
<params> is a dict of path parameters matched in the rest request.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.lookup_rpc_method (   self,
  method_name,
  version 
)
Lookup the JsonRPC method at call time.

The method is looked up in self._rpc_method_dict, the dictionary that
it is saved in for SaveRpcMethod().

Args:
  method_name: A string containing the name of the method.
  version: A string containing the version of the API.

Returns:
  Method descriptor as specified in the API configuration.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.parse_api_config_response (   self,
  body 
)
Parses a json api config and registers methods for dispatch.

Side effects:
  Parses method name, etc for all methods and updates the indexing
  datastructures with the information.

Args:
  body: A string, the JSON body of the getApiConfigs response.

The documentation for this class was generated from the following file: