AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTP2TransportFactory.h>
Public Member Functions | |
HTTP2TransportFactory (std::shared_ptr< avsCommon::utils::http2::HTTP2ConnectionFactoryInterface > connectionFactory, std::shared_ptr< PostConnectFactoryInterface > postConnectFactory, std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder=nullptr, std::shared_ptr< avsCommon::sdkInterfaces::EventTracerInterface > eventTracer=nullptr) | |
HTTP2TransportFactory ()=delete | |
TransportFactoryInterface methods. | |
std::shared_ptr< TransportInterface > | createTransport (std::shared_ptr< avsCommon::sdkInterfaces::AuthDelegateInterface > authDelegate, std::shared_ptr< avsCommon::avs::attachment::AttachmentManagerInterface > attachmentManager, const std::string &avsGateway, std::shared_ptr< MessageConsumerInterface > messageConsumerInterface, std::shared_ptr< TransportObserverInterface > transportObserverInterface, std::shared_ptr< SynchronizedMessageRequestQueue > sharedMessageRequestQueue) override |
Public Member Functions inherited from alexaClientSDK::acl::TransportFactoryInterface | |
virtual | ~TransportFactoryInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< TransportFactoryInterface > | createTransportFactoryInterface (const std::shared_ptr< avsCommon::utils::http2::HTTP2ConnectionFactoryInterface > &connectionFactory, const std::shared_ptr< PostConnectFactoryInterface > &postConnectFactory, const std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > &metricRecorder, const std::shared_ptr< avsCommon::sdkInterfaces::EventTracerInterface > &eventTracer) |
An HTTP2TransportFactory creates HTTP2Transport objects.
alexaClientSDK::acl::HTTP2TransportFactory::HTTP2TransportFactory | ( | std::shared_ptr< avsCommon::utils::http2::HTTP2ConnectionFactoryInterface > | connectionFactory, |
std::shared_ptr< PostConnectFactoryInterface > | postConnectFactory, | ||
std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > | metricRecorder = nullptr , |
||
std::shared_ptr< avsCommon::sdkInterfaces::EventTracerInterface > | eventTracer = nullptr |
||
) |
HTTP2TransportFactory constructor.
connectionFactory | Object used to create instances of HTTP2ConnectionInterface. |
postConnectFactory | Object used to create instances of the PostConnectInterface. |
metricRecorder | The metric recorder. |
eventTracer | Object used to trace events sent to AVS. |
|
delete |
Deleted default constructor.
|
overridevirtual |
Creates a new transport.
authDelegate | The AuthDelegateInterface to use for authentication and authorization with AVS. |
attachmentManager | The attachment manager that manages the attachments. |
avsGateway | The URL for the AVS server we will connect to. |
messageConsumerInterface | The object which should be notified on messages which arrive from AVS. |
transportObserverInterface | A pointer to the transport observer the new transport should notify. |
sharedRequestQueue | Request queue shared by all instances of TransportInterface. |
Implements alexaClientSDK::acl::TransportFactoryInterface.
|
static |
Factory to create instances of TransportFactoryInterface.
connectionFactory | Object used to create instances of HTTP2ConnectionInterface. |
postConnectFactory | Object used to create instances of the PostConnectInterface. |
metricRecorder | The metric recorder. |
eventTracer | Object used to trace events sent to AVS. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0