Package flumotion :: Package twisted :: Module rtsp :: Class RTSPChannel
[hide private]

classobj RTSPChannel

source code

twisted.internet.protocol.BaseProtocol --+            
                                         |            
        twisted.internet.protocol.Protocol --+        
                                             |        
   twisted.protocols.basic._PauseableMixin --+        
                                             |        
          twisted.protocols.basic.LineReceiver --+    
                                                 |    
       twisted.protocols.policies.TimeoutMixin --+    
                                                 |    
                      twisted.web.http.HTTPChannel --+
                                                     |
                                                    RTSPChannel

Returns an appropriately initialized _GenericHTTPChannelProtocol.

Nested Classes [hide private]
requestFactory
A HTTP request.
Instance Methods [hide private]
bool
checkPersistence(self, request, version)
Check if the channel should close or not.
source code

Inherited from twisted.web.http.HTTPChannel: __init__, __provides__, allContentReceived, allHeadersReceived, connectionLost, connectionMade, dataReceived, forceAbortClient, getHost, getPeer, headerReceived, isSecure, lineReceived, loseConnection, pauseProducing, rawDataReceived, registerProducer, requestDone, resumeProducing, stopProducing, timeoutConnection, unregisterProducer, write, writeHeaders, writeSequence

Inherited from twisted.web.http.HTTPChannel (private): _finishRequestBody, _log, _respondToBadRequestAndDisconnect, _send100Continue

Inherited from twisted.protocols.basic.LineReceiver: clearLineBuffer, lineLengthExceeded, sendLine, setLineMode, setRawMode

Inherited from twisted.internet.protocol.Protocol: logPrefix

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, makeConnection

Inherited from twisted.protocols.policies.TimeoutMixin: callLater, resetTimeout, setTimeout

Class Variables [hide private]

Inherited from twisted.web.http.HTTPChannel: __implemented__, length, persistent

Inherited from twisted.web.http.HTTPChannel (private): _receivedHeaderCount, _savedTimeOut

Inherited from twisted.protocols.basic.LineReceiver: delimiter, line_mode

Inherited from twisted.protocols.basic.LineReceiver (private): _buffer, _busyReceiving

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Inherited from twisted.protocols.basic._PauseableMixin: paused

Inherited from twisted.protocols.policies.TimeoutMixin: timeOut

Instance Variables [hide private]

Inherited from twisted.web.http.HTTPChannel: MAX_LENGTH, abortTimeout, maxHeaders, totalHeadersSize

Inherited from twisted.web.http.HTTPChannel (private): _abortingCall, _dataBuffer, _handlingRequest, _networkProducer, _optimisticEagerReadSize, _receivedHeaderSize, _requestProducer, _requestProducerStreaming, _transferDecoder, _waitingForTransport

Method Details [hide private]

checkPersistence(self, request, version)

source code 

Check if the channel should close or not.

Parameters:
  • request - The request most recently received over this channel against which checks will be made to determine if this connection can remain open after a matching response is returned.
  • version - The version of the request.
Returns: bool
A flag which, if True, indicates that this connection may remain open to receive another request; if False, the connection must be closed in order to indicate the completion of the response to request.
Overrides: twisted.web.http.HTTPChannel.checkPersistence
(inherited documentation)