Package flumotion :: Package component :: Package common :: Package streamer :: Module mfdsresources :: Class MultiFdSinkStreamingResource
[hide private]

Class MultiFdSinkStreamingResource

source code

twisted.web.resource.Resource --+    
                                |    
      extern.log.log.Loggable --+    
                                |    
  resources.HTTPStreamingResource --+
                                    |
          extern.log.log.Loggable --+
                                    |
                                   MultiFdSinkStreamingResource
Known Subclasses:

Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Instance Methods [hide private]
 
__init__(self, streamer, httpauth)
Initialize.
source code
 
isReady(self) source code
 
clientRemoved(self, sink, fd, reason, stats) source code
 
_logWrite(self, request, stats) source code
 
_removeClient(self, request, fd, stats)
Removes a request and add logging.
source code
 
handleAuthenticatedRequest(self, res, request) source code
 
_formatHeaders(self, request) source code
boolean
_writeHeaders(self, request)
Write out the HTTP headers for the incoming HTTP request.
source code
 
_handleNewClient(self, request) source code
 
_render(self, request)
Default handling of HEAD method.
source code
 
render_GET(self, request)
Default handling of HEAD method.
source code
 
render_HEAD(self, request)
Default handling of HEAD method.
source code

Inherited from resources.HTTPStreamingResource: getMaxAllowedClients, logWrite, reachedServerLimits, removeAllClients, rotateLogs, setBandwidthLimit, setLogFilter, setRedirectionOnLimits, setRoot, setUserLimit

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

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

Class Variables [hide private]

Inherited from resources.HTTPStreamingResource: HTTP_NAME, HTTP_SERVER, __reserve_fds__, isLeaf, logCategory

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

Method Details [hide private]

__init__(self, streamer, httpauth)
(Constructor)

source code 

Initialize.

Parameters:
Overrides: twisted.web.resource.Resource.__init__
(inherited documentation)

isReady(self)

source code 
Overrides: resources.HTTPStreamingResource.isReady

_removeClient(self, request, fd, stats)

source code 

Removes a request and add logging. Note that it does not disconnect the client; it is called in reaction to a client disconnecting.

Parameters:
  • request (twisted.protocols.http.Request) - the request
  • fd (int) - the file descriptor for the client being removed
  • stats (GValueArray) - the statistics for the removed client
Overrides: resources.HTTPStreamingResource._removeClient

_writeHeaders(self, request)

source code 

Write out the HTTP headers for the incoming HTTP request.

Returns: boolean
whether or not the file descriptor can be used further.

render_HEAD(self, request)

source code 

Default handling of HEAD method.

I just return self.render_GET(request). When method is HEAD, the framework will handle this correctly.

Overrides: twisted.web.resource.Resource.render_HEAD
(inherited documentation)