Package flumotion :: Package component :: Package misc :: Package porter :: Module porter :: Class HTTPPorterProtocol
[hide private]

Class HTTPPorterProtocol

source code

twisted.internet.protocol.BaseProtocol --+        
                                         |        
        twisted.internet.protocol.Protocol --+    
                                             |    
                       common.log.Loggable --+    
                                             |    
                                PorterProtocol --+
                                                 |
                                                HTTPPorterProtocol
Known Subclasses:

Instance Methods [hide private]
 
parseLine(self, line)
Parse the initial line of the response.
source code
 
writeNotFoundResponse(self)
Write a response indicating that the requested resource was not found in this protocol.
source code

Inherited from PorterProtocol: __init__, dataReceived

Inherited from twisted.internet.protocol.Protocol: connectionLost

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

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

Class Variables [hide private]
  scheme = 'http'
  protos = ['HTTP/1.0', 'HTTP/1.1']

Inherited from PorterProtocol: MAX_SIZE, delimiters

Inherited from twisted.internet.protocol.Protocol: __implemented__, __provides__

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

Inherited from common.log.Loggable: logCategory

Method Details [hide private]

parseLine(self, line)

source code 

Parse the initial line of the response. Return a string usable for uniquely identifying the stream being requested, or None if the request is unreadable.

Subclasses should override this.

Overrides: PorterProtocol.parseLine
(inherited documentation)

writeNotFoundResponse(self)

source code 

Write a response indicating that the requested resource was not found in this protocol.

Subclasses should override this to use the correct protocol.

Overrides: PorterProtocol.writeNotFoundResponse
(inherited documentation)