Trees | Index | Help |
---|
Package twisted :: Package web :: Module server :: Class Site |
|
Factory
--+ |ServerFactory
--+ |HTTPFactory
--+ | Site
RTSPSite
Method Summary | |
---|---|
Initialize. | |
__getstate__(self)
| |
Generate a channel attached to this site. | |
Emulate a resource's getChild method. | |
Get a resource for a request. | |
Get a previously generated session, by its unique ID. | |
Generate a new Session instance, and store it for future reference. | |
Redirect because a Site is always a directory. | |
Inherited from HTTPFactory | |
Log a request's result to the logfile, by default in combined log format. | |
This will be called before I begin listening on a Port or Connector. | |
This will be called before I stop listening on all Ports/Connectors. | |
Inherited from Factory | |
Make sure startFactory is called. | |
Make sure stopFactory is called. |
Class Variable Summary | |
---|---|
int |
counter = 0 |
bool |
displayTracebacks = True
|
int |
isLeaf = 0 |
classobj |
requestFactory = twisted.web.server.Request |
Inherited from HTTPFactory | |
NoneType |
logPath = None |
int |
timeOut = 43200 |
Inherited from Factory | |
Implements |
__implemented__ = <implementedBy twisted.internet.protoc...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
bool |
noisy = True
|
int |
numPorts = 0 |
NoneType |
protocol = None |
Method Details |
---|
__init__(self,
resource,
logPath=None,
timeout=43200)
Initialize.
|
buildProtocol(self, addr)Generate a channel attached to this site.
|
getChildWithDefault(self, pathEl, request)Emulate a resource's getChild method. |
getResourceFor(self, request)Get a resource for a request. This iterates through the resource heirarchy, calling getChildWithDefault on each resource it finds for a path element, stopping when it hits an element where isLeaf is true. |
getSession(self, uid)Get a previously generated session, by its unique ID. This raises a KeyError if the session is not found. |
makeSession(self)Generate a new Session instance, and store it for future reference. |
render(self, request)Redirect because a Site is always a directory. |
Class Variable Details |
---|
counter
|
displayTracebacks
|
isLeaf
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:16:50 2007 | http://epydoc.sf.net |