AlexaClientSDK  1.22.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acl::TransportFactoryInterface Class Referenceabstract

#include <TransportFactoryInterface.h>

Inheritance diagram for alexaClientSDK::acl::TransportFactoryInterface:
Inheritance graph
[legend]

Public Member Functions

virtual std::shared_ptr< TransportInterfacecreateTransport (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)=0
 
virtual ~TransportFactoryInterface ()=default
 

Detailed Description

This is the interface for the transport factory

Constructor & Destructor Documentation

◆ ~TransportFactoryInterface()

virtual alexaClientSDK::acl::TransportFactoryInterface::~TransportFactoryInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ createTransport()

virtual std::shared_ptr<TransportInterface> alexaClientSDK::acl::TransportFactoryInterface::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 
)
pure virtual

Creates a new transport.

Parameters
authDelegateThe AuthDelegateInterface to use for authentication and authorization with AVS.
attachmentManagerThe attachment manager that manages the attachments.
avsGatewayThe URL for the AVS server we will connect to.
messageConsumerInterfaceThe object which should be notified on messages which arrive from AVS.
transportObserverInterfaceA pointer to the transport observer the new transport should notify.
sharedRequestQueueRequest queue shared by all instances of TransportInterface.
Returns
A new MessageRouter object.

Implemented in alexaClientSDK::acl::HTTP2TransportFactory.


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

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