|
Google APIs Client Library for C++
|
A transport factory for creating JsonPlaybackTransport. More...
#include "client/transport/json_playback_transport.h"
Inheritance diagram for JsonPlaybackTransportFactory:Public Member Functions | |
| JsonPlaybackTransportFactory () | |
| The default consructor will use the default transport options. | |
| JsonPlaybackTransportFactory (const HttpTransportLayerConfig *config) | |
| Standard constructor. | |
| virtual | ~JsonPlaybackTransportFactory () |
| Standard destructor. | |
| util::Status | LoadTranscript (DataReader *reader) |
| Loads the transcript to be shared among all instances created. | |
| void | ResetCensor (HttpScribeCensor *censor) |
| Changes the censor used by this factory. | |
| HttpScribeCensor * | censor () |
| Returns the censor currently owned by the factory. | |
Protected Member Functions | |
| virtual HttpTransport * | DoAlloc (const HttpTransportOptions &options) |
| Creates a new JsonPlaybackTransport instance configured with the playback attributes specified in this factory. | |
A transport factory for creating JsonPlaybackTransport.
This is a standard HttpTransportFactory that can be used in place of any other.
You will need to configure it by loading a transcript and binding an HttpScribeCensor. See the JsonPlaybackTransport for details regarding the censor to use here for best results.
The default consructor will use the default transport options.
| JsonPlaybackTransportFactory | ( | const HttpTransportLayerConfig * | config | ) | [explicit] |
Standard constructor.
| virtual ~JsonPlaybackTransportFactory | ( | ) | [virtual] |
Standard destructor.
| HttpScribeCensor* censor | ( | ) | [inline] |
Returns the censor currently owned by the factory.
| virtual HttpTransport* DoAlloc | ( | const HttpTransportOptions & | options | ) | [protected, virtual] |
Creates a new JsonPlaybackTransport instance configured with the playback attributes specified in this factory.
Implements HttpTransportFactory.
| util::Status LoadTranscript | ( | DataReader * | reader | ) |
Loads the transcript to be shared among all instances created.
The factory will maintain ownership of this
| [in] | reader | The reader containing the data output by a JsonScribe. |
| void ResetCensor | ( | HttpScribeCensor * | censor | ) |
Changes the censor used by this factory.
| censor | Ownership is passed to the factory. |