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

Public Member Functions

def __init__
 
def regex
 
def Regexify
 
def MatchesString
 
def MatchesAll
 
def HasMoreSpecificPatternThan
 
def __eq__
 
def IsFullyHandledBy
 

Public Attributes

 is_literal
 

Static Public Attributes

list ALL_PROPERTIES
 

Properties

 pattern = property(_GetPattern, _SetPattern)
 

Detailed Description

Ancestor class for Handler manipulation. Patterns are globs.

(http://en.wikipedia.org/wiki/Glob_(programming)).

Member Function Documentation

def google.appengine.tools.handler.Handler.HasMoreSpecificPatternThan (   self,
  other_handler 
)
Returns True if self is more specific than other_handler.

Priority in determining specificity is first determined by literal-ness,
second by length. This is according to the Java servlet spec for
mapping URL paths.

Args:
  other_handler: another handler to compare against.

Returns:
  True if self.pattern is a literal and other_handler.pattern is not,
  False if vice versa, and otherwise True if self.pattern is longer.
def google.appengine.tools.handler.Handler.IsFullyHandledBy (   self,
  other_handler 
)
Returns True if self specifies something unique.

For example, If we have a Handler with pattern "foo*bar"
which has properties {'type': 'static'}, and other_handler
has pattern "foo*" with the same properties, then
other_handler does everything that self does.

Args:
  other_handler: other handler to be matched against
Returns:
  Boolean value of whether other_handler fully handles self.
def google.appengine.tools.handler.Handler.MatchesAll (   self,
  other_glob 
)
Returns True if self matches everything other_glob matches.
def google.appengine.tools.handler.Handler.MatchesString (   self,
  pattern_str 
)
Returns true if input path string is matched by glob pattern.
def google.appengine.tools.handler.Handler.Regexify (   self)
Returns a regex-looking string to write to Yaml.

Member Data Documentation

list google.appengine.tools.handler.Handler.ALL_PROPERTIES
static
Initial value:
1 = [
2  'expiration',
3  'http_headers',
4  'required_role',
5  'transport_guarantee',
6  'type',
7  'welcome'
8  ]

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