Table of Contents

Class: NameVirtualHost | Twisted-0.19.0/twisted/web/vhost.py
--- | ---
I am a resource which represents named virtual hosts.
Base Classes |
--- | ---
resource.Resource
Methods |
--- | ---
__init__ _getResourceForRequest addHost getChild getStaticEntity listStaticEntities removeHost render
| __init__
    __init__ ( self )
Initialize.
| _getResourceForRequest
    _getResourceForRequest ( self,  request )
(Internal) Get the appropriate resource for the given host.
| addHost
    addHost (
            self,
            name,
            resrc,
            )
### Add a host to this virtual host. This will take a host named `name', and map it to a resource `resrc'. For example, a setup for our virtual hosts would be:
                nvh.addHost('divunal.com', divunalDirectory)
                nvh.addHost('www.divunal.com', divunalDirectory)
                nvh.addHost('twistedmatrix.com', twistedMatrixDirectory)
                nvh.addHost('www.twistedmatrix.com', twistedMatrixDirectory)
| getChild
    getChild (
            self,
            path,
            request,
            )
Implementation of resource.Resource's getChild method.
| getStaticEntity
    getStaticEntity ( self,  name )
| listStaticEntities
    listStaticEntities ( self )
| removeHost
    removeHost ( self,  name )
Remove a host.
| render
    render ( self,  request )
Implementation of resource.Resource's render method.

Table of Contents

This document was automatically generated on Sun Jul 14 19:53:39 2002 by HappyDoc version 2.0