Line data Source code
1 : #include "source/extensions/http/stateful_session/header/config.h" 2 : 3 : #include "source/common/config/utility.h" 4 : 5 : namespace Envoy { 6 : namespace Extensions { 7 : namespace Http { 8 : namespace StatefulSession { 9 : namespace Header { 10 : 11 : Envoy::Http::SessionStateFactorySharedPtr 12 : HeaderBasedSessionStateFactoryConfig::createSessionStateFactory( 13 0 : const Protobuf::Message& config, Server::Configuration::GenericFactoryContext& context) { 14 : 15 0 : const auto& proto_config = MessageUtil::downcastAndValidate<const HeaderBasedSessionStateProto&>( 16 0 : config, context.messageValidationVisitor()); 17 0 : return std::make_shared<HeaderBasedSessionStateFactory>(proto_config); 18 0 : } 19 : 20 : REGISTER_FACTORY(HeaderBasedSessionStateFactoryConfig, Envoy::Http::SessionStateFactoryConfig); 21 : 22 : } // namespace Header 23 : } // namespace StatefulSession 24 : } // namespace Http 25 : } // namespace Extensions 26 : } // namespace Envoy