WebResourceGroupclass
A WebResourceGroup is a container for WebResource objects. When a server receives a request, it looks in its group list to find the resource object that will handle the request.
class
WebResourceGroup
: object
Superclass Tree (in declaration order)
WebResourceGroup
` object`
Subclass Tree
(none)
Global Objects
Summary of Properties
Summary of Methods
Properties
all
class property: list of all WebResourceGroup objects
contents
the WebResource objects in the group
priority
The priority of the group, relative to other groups. If the same server matches multiple groups, this allows you to designate which group has precedence. A higher value means higher priority.
server
The HTTPServer object or objects this group is associated with. The general event processor uses this to route a request to the appropriate resource group, by finding the group that’s associated with the server that received the request.
To associate a group with multiple servers, make this a list.
Methods
isGroupFor (req)
Should this group handle the given request? By default, we say yes if the server that received the request is associated with this group via the group’s ‘server’ property.
processRequest (req)
Process a request. This looks for the highest priority matching resource in the group, then hands the request to that resource for processing.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3