Package flumotion :: Package twisted :: Module rtsp :: Class RTSPRequest
[show private | hide private]
[frames | no frames]

Class RTSPRequest

Loggable --+
           |
 Request --+
           |
          RTSPRequest


Method Summary
  delHeader(self, key)
  process(self)
Override in subclasses.
  processingFailed(self, reason)
  render(self, resrc)
  setResponseCode(self, code, message)
Set the RTSP response code.
  _error(self, code, *lines)
  _processPath(self)
  _renderCallback(self, result, resrc)
    Inherited from Request
  __init__(self, channel, queued)
  __repr__(self)
  addCookie(self, k, v, expires, domain, path, max_age, comment, secure)
Set an outgoing HTTP cookie.
  connectionLost(self, reason)
connection was lost
  finish(self)
We are finished writing data.
  getAllHeaders(self)
Return dictionary of all headers the request received.
  getClient(self)
  getClientIP(self)
  getCookie(self, key)
Get a cookie that was sent from the network.
  getHeader(self, key)
Get a header that was sent from the network.
  getHost(self)
Get my originally requesting transport's host.
  getPassword(self)
  getRequestHostname(self)
Get the hostname that the user passed in to the request.
  getUser(self)
  gotLength(self, length)
Called when HTTP channel got length of content in this request.
  handleContentChunk(self, data)
Write a chunk of data.
  isSecure(self)
  noLongerQueued(self)
Notify the object that it is no longer queued.
  parseCookies(self)
Parse cookie headers.
  redirect(self, url)
Utility function that does a redirect.
  registerProducer(self, producer, streaming)
Register a producer.
  requestReceived(self, command, path, version)
Called by channel when all data has been received.
  setETag(self, etag)
Set an entity tag for the outgoing response.
  setHeader(self, k, v)
Set an outgoing HTTP header.
  setHost(self, host, port, ssl)
Change the host and port the request thinks it's using.
  setLastModified(self, when)
Set the Last-Modified time for the response to this request.
  unregisterProducer(self)
Unregister the producer.
  write(self, data)
Write some data as a result of an HTTP request.
  _authorize(self)
  _cleanup(self)
Called when have finished responding and are no longer queued.
  _sendError(self, code, resp)
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
dict doLog(self, level, where, format, *args, **kwargs)
Log a message at the given level, with the possibility of going higher up in the stack.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, *args)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure, swallow)
Log a warning about a Failure.

Instance Variable Summary
    Inherited from Request
A mapping of strings (the argument names) to lists of values. i.e., ?foo=bar&foo=baz&quux=spam results in {'foo': ['bar', 'baz'], 'quux': ['spam']}. args: All of the arguments, including URL and POST arguments.
str method: The HTTP method that was used.
  path: The path only (arguments not included).
  received_headers: All received headers
str uri: The full URI that was requested (includes arguments).

Class Variable Summary
int code = 200                                                                   
str code_message = 'OK'
NoneType host = None                                                                  
str logCategory: Implementors can provide a category to log their messages under.
NoneType port = None                                                                  
    Inherited from Request
Implements __implemented__ = <implementedBy twisted.web.http.Reques...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
int chunked = 0                                                                     
str clientproto = '(no clientproto yet)'
NoneType etag = None                                                                  
int finished = 0                                                                     
NoneType lastModified = None                                                                  
NoneType producer = None                                                                  
int sentLength = 0                                                                     
int startedWriting = 0                                                                     
int _forceSSL = 0                                                                     

Method Details

process(self)

Override in subclasses.

This method is not intended for users.
Overrides:
twisted.web.http.Request.process (inherited documentation)

setResponseCode(self, code, message=None)

Set the RTSP response code.
Overrides:
twisted.web.http.Request.setResponseCode

Class Variable Details

code

Type:
int
Value:
200                                                                   

code_message

Type:
str
Value:
'OK'                                                                   

host

Type:
NoneType
Value:
None                                                                  

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'request'                                                              

port

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Fri May 18 09:35:49 2007 http://epydoc.sf.net