Google APIs Client Library for C++
CurlHttpTransportFactory Class Reference

Factory for creating CurlHttpTransport instances. More...

#include "client/transport/curl_http_transport.h"

+ Inheritance diagram for CurlHttpTransportFactory:

List of all members.

Public Member Functions

 CurlHttpTransportFactory ()
 Default constructor.
 CurlHttpTransportFactory (const HttpTransportLayerConfig *config)
 Standard constructor.
virtual ~CurlHttpTransportFactory ()
 Standard destructor.

Static Public Member Functions

static HttpTransportNewCurlHttpTransport (const HttpTransportOptions &options)
 Creates a new instance of a CurlHttpTransport with overriden options.

Protected Member Functions

virtual HttpTransportDoAlloc (const HttpTransportOptions &options)
 Creates a new transport with overrided options.

Detailed Description

Factory for creating CurlHttpTransport instances.

It is recommended not to use this class directly except at the point you are injecting curl as the Http Transport implementation. This should be at application-level configuration.

   HttpTransport::set_default_transport_factory(new CurlHttpTransportFactory)
 

Constructor & Destructor Documentation

Default constructor.

CurlHttpTransportFactory ( const HttpTransportLayerConfig config) [explicit]

Standard constructor.

virtual ~CurlHttpTransportFactory ( ) [virtual]

Standard destructor.


Member Function Documentation

virtual HttpTransport* DoAlloc ( const HttpTransportOptions options) [protected, virtual]

Creates a new transport with overrided options.

Parameters:
[in]optionsThe options will override the options in the factory that are used to configure new transports created. The options are copied into the new instance.
Returns:
ownership of the new transport is passed back to the caller.

Implements HttpTransportFactory.

static HttpTransport* NewCurlHttpTransport ( const HttpTransportOptions options) [static]

Creates a new instance of a CurlHttpTransport with overriden options.

Parameters:
[in]optionsThe options to use when configuring the transport are copied into the instance.
Returns:
ownership of the new transport is passed back to the caller.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines