AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
HTTP2TransportFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_HTTP2TRANSPORTFACTORY_H_
17 #define ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_HTTP2TRANSPORTFACTORY_H_
18 
19 #include <memory>
20 #include <string>
21 
27 
32 
33 namespace alexaClientSDK {
34 namespace acl {
35 
40 public:
49  static std::shared_ptr<TransportFactoryInterface> createTransportFactoryInterface(
50  const std::shared_ptr<avsCommon::utils::http2::HTTP2ConnectionFactoryInterface>& connectionFactory,
51  const std::shared_ptr<PostConnectFactoryInterface>& postConnectFactory,
52  const std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface>& metricRecorder,
53  const std::shared_ptr<avsCommon::sdkInterfaces::EventTracerInterface>& eventTracer);
54 
65  std::shared_ptr<avsCommon::utils::http2::HTTP2ConnectionFactoryInterface> connectionFactory,
66  std::shared_ptr<PostConnectFactoryInterface> postConnectFactory,
67  std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> metricRecorder = nullptr,
68  std::shared_ptr<avsCommon::sdkInterfaces::EventTracerInterface> eventTracer = nullptr);
69 
72  std::shared_ptr<TransportInterface> createTransport(
73  std::shared_ptr<avsCommon::sdkInterfaces::AuthDelegateInterface> authDelegate,
74  std::shared_ptr<avsCommon::avs::attachment::AttachmentManagerInterface> attachmentManager,
75  const std::string& avsGateway,
76  std::shared_ptr<MessageConsumerInterface> messageConsumerInterface,
77  std::shared_ptr<TransportObserverInterface> transportObserverInterface,
78  std::shared_ptr<SynchronizedMessageRequestQueue> sharedMessageRequestQueue) override;
80 
84  HTTP2TransportFactory() = delete;
85 
86 private:
88  std::shared_ptr<avsCommon::utils::http2::HTTP2ConnectionFactoryInterface> m_connectionFactory;
89 
91  std::shared_ptr<PostConnectFactoryInterface> m_postConnectFactory;
92 
94  std::shared_ptr<avsCommon::utils::metrics::MetricRecorderInterface> m_metricRecorder;
95 
97  std::shared_ptr<avsCommon::sdkInterfaces::EventTracerInterface> m_eventTracer;
98 };
99 
100 } // namespace acl
101 } // namespace alexaClientSDK
102 
103 #endif // ALEXA_CLIENT_SDK_ACL_INCLUDE_ACL_TRANSPORT_HTTP2TRANSPORTFACTORY_H_
::std::string string
Definition: gtest-port.h:1097
static std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder
Metric recorder shared ptr.
Definition: BaseAPLCapabilityAgentTest.cpp:261
Definition: HTTP2TransportFactory.h:39
Definition: TransportFactoryInterface.h:36
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)
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
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

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