1
#pragma once
2

            
3
#include "source/extensions/http/stateful_session/envelope/envelope.h"
4

            
5
namespace Envoy {
6
namespace Extensions {
7
namespace Http {
8
namespace StatefulSession {
9
namespace Envelope {
10

            
11
class EnvelopeSessionStateFactoryConfig : public Envoy::Http::SessionStateFactoryConfig {
12
public:
13
  Envoy::Http::SessionStateFactorySharedPtr
14
  createSessionStateFactory(const Protobuf::Message& config,
15
                            Server::Configuration::GenericFactoryContext& context) override;
16

            
17
4
  ProtobufTypes::MessagePtr createEmptyConfigProto() override {
18
4
    return std::make_unique<EnvelopeSessionStateProto>();
19
4
  }
20

            
21
20
  std::string name() const override { return "envoy.http.stateful_session.envelope"; }
22
};
23

            
24
} // namespace Envelope
25
} // namespace StatefulSession
26
} // namespace Http
27
} // namespace Extensions
28
} // namespace Envoy