Package WebStack :: Package Resources :: Module Selectors :: Class EncodingSelector
[show private | hide private]
[frames | no frames]

Class EncodingSelector


Set the default encoding (or "charset") on transactions presented to this
resource.

Method Summary
  __init__(self, resource, encoding)
Initialise the selector with a 'resource' (to which all requests shall be forwarded), specifying the 'encoding' which shall be used as the default encoding (or "charset") for all transactions handled by this resource.
  respond(self, trans)
Respond to the transaction 'trans' by setting the default encoding (or "charset") on 'trans', then forwarding the transaction to the previously specified resource.

Method Details

__init__(self, resource, encoding)
(Constructor)

Initialise the selector with a 'resource' (to which all requests shall
be forwarded), specifying the 'encoding' which shall be used as the
default encoding (or "charset") for all transactions handled by this
resource.

respond(self, trans)

Respond to the transaction 'trans' by setting the default encoding (or
"charset") on 'trans', then forwarding the transaction to the previously
specified resource.

Generated by Epydoc 2.1 on Thu Mar 1 00:37:14 2007 http://epydoc.sf.net