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.ext.mapreduce.base_handler.JsonHandler Class Reference
Inheritance diagram for google.appengine.ext.mapreduce.base_handler.JsonHandler:
google.appengine.ext.webapp._webapp25.RequestHandler google.appengine.ext.mapreduce.base_handler.GetJsonHandler google.appengine.ext.mapreduce.base_handler.PostJsonHandler google.appengine.ext.mapreduce.status.GetJobDetailHandler google.appengine.ext.mapreduce.status.ListConfigsHandler google.appengine.ext.mapreduce.status.ListJobsHandler google.appengine.ext.mapreduce.handlers.AbortJobHandler google.appengine.ext.mapreduce.handlers.CleanUpJobHandler google.appengine.ext.mapreduce.handlers.StartJobHandler

Public Member Functions

def __init__
 
def base_path
 
def handle
 
- Public Member Functions inherited from google.appengine.ext.webapp._webapp25.RequestHandler
def initialize
 
def get
 
def post
 
def head
 
def options
 
def put
 
def delete
 
def trace
 
def error
 
def redirect
 
def handle_exception
 
def new_factory
 
def get_url
 

Public Attributes

 json_response
 
- Public Attributes inherited from google.appengine.ext.webapp._webapp25.RequestHandler
 request
 
 response
 

Detailed Description

Base class for JSON handlers for user interface.

Sub-classes should implement the 'handle' method. They should put their
response data in the 'self.json_response' dictionary. Any exceptions raised
by the sub-class implementation will be sent in a JSON response with the
name of the error_class and the error_message.

Constructor & Destructor Documentation

def google.appengine.ext.mapreduce.base_handler.JsonHandler.__init__ (   self,
  args 
)
Initializer.

Member Function Documentation

def google.appengine.ext.mapreduce.base_handler.JsonHandler.base_path (   self)
Base path for all mapreduce-related urls.

JSON handlers are mapped to /base_path/command/command_name thus they
require special treatment.

Raises:
  BadRequestPathError: if the path does not end with "/command".

Returns:
  The base path.
def google.appengine.ext.mapreduce.base_handler.JsonHandler.handle (   self)
To be implemented by sub-classes.

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