AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTPContentFetcherFactory.h>
Public Member Functions | |
HTTPContentFetcherFactory (const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &setCurlOptionsCallbackFactory=nullptr) | |
HTTPContentFetcherInterfaceFactoryInterface methods | |
std::unique_ptr< avsCommon::sdkInterfaces::HTTPContentFetcherInterface > | create (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::HTTPContentFetcherInterfaceFactoryInterface > | createHTTPContentFetcherInterfaceFactoryInterface (const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > &setCurlOptionsCallbackFactory=nullptr) |
A class that produces HTTPContentFetchers
.
alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPContentFetcherFactory::HTTPContentFetcherFactory | ( | const std::shared_ptr< LibcurlSetCurlOptionsCallbackFactoryInterface > & | setCurlOptionsCallbackFactory = nullptr | ) |
Constructor.
setCurlOptionsCallbackFactory | The optional LibcurlSetCurlOptionsCallbackFactoryInterface to set user defined curl options |
|
overridevirtual |
Produces an HTTPContentFetcherInterface
object or nullptr
on failure.
url | The url to fetch the content from. |
HTTPContentFetcherInterface
. Implements alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface.
|
static |
Factory for creating instances of avsCommon::sdkInterfaces::HTTPContentFetcherInterfaceFactoryInterface
setCurlOptionsCallbackFactory | The LibcurlSetCurlOptionsCallbackFactoryInterface to set user defined curl options. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0