Package flumotion :: Package component :: Package misc :: Package httpserver :: Module httpfile :: Class FLVFile
[hide private]

Class FLVFile

source code

          twisted.web.resource.Resource --+    
twisted.python.filepath._PathHelper --+   |    
                                      |   |    
       twisted.python.filepath.FilePath --+    
                extern.log.log.Loggable --+    
                                       File --+

I am a File resource for FLV files. I can handle requests with a 'start' GET parameter. This parameter represents the byte offset from where to start. If it is non-zero, I will output an FLV header so the result is playable.

Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Inherited from twisted.python.filepath.FilePath: clonePath

Instance Methods [hide private]
do_prepareBody(self, request, f, first, last)
I am called before the body of the response gets written, and after generic header setting has been done.
source code

Inherited from File: __init__, getChild, getFileSize, openForReading, render, renderAuthenticated

Inherited from twisted.web.resource.Resource: __providedBy__, delEntity, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render_HEAD

Inherited from twisted.python.filepath.FilePath: __cmp__, __getstate__, __repr__, basename, child, childSearchPreauth, copyTo, create, createDirectory, dirname, exists, getatime, getctime, getmtime, getsize, globChildren, isabs, isdir, isfile, islink, listdir, makedirs, moveTo, open, parent, preauthChild, remove, requireCreate, restat, setContent, siblingExtension, siblingExtensionSearch, splitext, temporarySibling, touch

Inherited from twisted.python.filepath._PathHelper: children, getContent, segmentsFrom, sibling, walk

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  header = 'FLV\x01\x01\x00\x00\x00\t\x00\x00\x00\t'

Inherited from File: childNotFound, contentTypes, defaultType

Inherited from twisted.web.resource.Resource: __implemented__, __provides__, isLeaf, server

Inherited from twisted.python.filepath.FilePath: path, statinfo

Inherited from twisted.python.filepath.FilePath (private): _chunkSize

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from twisted.python.filepath.FilePath: alwaysCreate

Method Details [hide private]

do_prepareBody(self, request, f, first, last)

source code 

I am called before the body of the response gets written, and after generic header setting has been done.

I set Content-Length.

Override me to send additional headers, or to prefix the body with data headers.

Overrides: File.do_prepareBody
(inherited documentation)