Package pywbem :: Module twisted_client :: Class WBEMClient |
[frames] | no frames]

# Class WBEMClient

source code

    twisted.internet.protocol.BaseProtocol --+
                                             |
            twisted.internet.protocol.Protocol --+
                                                 |
       twisted.protocols.basic._PauseableMixin --+
                                                 |
              twisted.protocols.basic.LineReceiver --+
                                                     |
                           twisted.web.http.HTTPClient --+
                                                         |
                                                        WBEMClient

A HTTPClient subclass that handles WBEM requests.

Instance Methods
connectionMade(self) Send a HTTP POST command with the appropriate CIM over HTTP headers and payload. | source code
handleResponse(self, data) Called when all response data has been received. | source code
handleStatus(self, version, status, message) Save the status code for processing when we get to the end of the headers. | source code
handleHeader(self, key, value) Handle header values. | source code
handleEndHeaders(self) Check whether the status was OK and raise an error if not using previously saved header information. | source code
Inherited from `twisted.web.http.HTTPClient`: `connectionLost`, `endHeaders`, `extractHeader`, `handleResponseEnd`, `handleResponsePart`, `lineReceived`, `rawDataReceived`, `sendCommand`, `sendHeader` Inherited from `twisted.protocols.basic.LineReceiver`: `clearLineBuffer`, `dataReceived`, `lineLengthExceeded`, `sendLine`, `setLineMode`, `setRawMode` Inherited from `twisted.internet.protocol.Protocol`: `__provides__`, `logPrefix` Inherited from `twisted.internet.protocol.BaseProtocol`: `__providedBy__`, `makeConnection` Inherited from `twisted.protocols.basic._PauseableMixin`: `pauseProducing`, `resumeProducing`, `stopProducing`

Class Variables
| status = `None`
Inherited from `twisted.web.http.HTTPClient`: `firstLine`, `length` Inherited from `twisted.protocols.basic.LineReceiver`: `MAX_LENGTH`, `delimiter`, `line_mode` Inherited from `twisted.internet.protocol.Protocol`: `__implemented__` Inherited from `twisted.internet.protocol.BaseProtocol`: `connected`, `transport` Inherited from `twisted.protocols.basic._PauseableMixin`: `paused`

Method Details

### connectionMade(self) | source code
Send a HTTP POST command with the appropriate CIM over HTTP headers and payload. Overrides: twisted.internet.protocol.BaseProtocol.connectionMade

### handleStatus(self, version, status, message) | source code
Save the status code for processing when we get to the end of the headers. Overrides: twisted.web.http.HTTPClient.handleStatus

### handleHeader(self, key, value) | source code
Handle header values. Overrides: twisted.web.http.HTTPClient.handleHeader

### handleEndHeaders(self) | source code
Check whether the status was OK and raise an error if not using previously saved header information. Overrides: twisted.web.http.HTTPClient.handleEndHeaders