AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory Class Reference

#include <HTTPContentFetcherFactory.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory:
Collaboration graph
[legend]

Public Member Functions

 HTTPContentFetcherFactory (const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &setCurlOptionsCallbackFactory=nullptr)
 
HTTPContentFetcherInterfaceFactoryInterface methods
std::unique_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfacecreate (const std::string &url) override
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface
virtual ~HTTPContentFetcherInterfaceFactoryInterface ()=default
 

Static Public Member Functions

static std::shared_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterfacecreateHTTPContentFetcherInterfaceFactoryInterface (const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &setCurlOptionsCallbackFactory=nullptr)
 

Detailed Description

A class that produces HTTPContentFetchers.

Constructor & Destructor Documentation

◆ HTTPContentFetcherFactory()

alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory::HTTPContentFetcherFactory ( const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &  setCurlOptionsCallbackFactory = nullptr)

Constructor.

Parameters
setCurlOptionsCallbackFactoryThe optional LibcurlSetCurlOptionsCallbackFactoryInterface to set user defined curl options

Member Function Documentation

◆ create()

std::unique_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterface> alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory::create ( const std::string &  url)
overridevirtual

Produces an HTTPContentFetcherInterface object or nullptr on failure.

Parameters
urlThe url to fetch the content from.
Returns
A new instance of HTTPContentFetcherInterface.

Implements alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface.

◆ createHTTPContentFetcherInterfaceFactoryInterface()

static std::shared_ptr<avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface> alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory::createHTTPContentFetcherInterfaceFactoryInterface ( const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &  setCurlOptionsCallbackFactory = nullptr)
static

Factory for creating instances of avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface

Parameters
setCurlOptionsCallbackFactoryThe LibcurlSetCurlOptionsCallbackFactoryInterface to set user defined curl options.
Returns
A new instance of avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0