1
#include "source/extensions/http/stateful_session/envelope/config.h"
2

            
3
#include "envoy/extensions/http/stateful_session/envelope/v3/envelope.pb.validate.h"
4

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

            
11
Envoy::Http::SessionStateFactorySharedPtr
12
EnvelopeSessionStateFactoryConfig::createSessionStateFactory(
13
3
    const Protobuf::Message& config, Server::Configuration::GenericFactoryContext& context) {
14

            
15
3
  const auto& proto_config = MessageUtil::downcastAndValidate<const EnvelopeSessionStateProto&>(
16
3
      config, context.messageValidationVisitor());
17
3
  return std::make_shared<EnvelopeSessionStateFactory>(proto_config);
18
3
}
19

            
20
REGISTER_FACTORY(EnvelopeSessionStateFactoryConfig, Envoy::Http::SessionStateFactoryConfig);
21

            
22
} // namespace Envelope
23
} // namespace StatefulSession
24
} // namespace Http
25
} // namespace Extensions
26
} // namespace Envoy