Line data Source code
1 : /* 2 : * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. 3 : * Copyright Contributors to the OpenSDN project 4 : */ 5 : 6 : #ifndef vnsw_agent_metadata_client_h_ 7 : #define vnsw_agent_metadata_client_h_ 8 : 9 : #include "http/client/http_client.h" 10 : #include "services/metadata_client_session.h" 11 : 12 : class MetadataClient : public HttpClient { 13 : public: 14 2 : MetadataClient(EventManager *evm) : HttpClient(evm) {} 15 4 : virtual ~MetadataClient() {} 16 : 17 0 : virtual TcpSession *AllocSession(Socket *socket) { 18 : MetadataClientSession *session = 19 0 : new MetadataClientSession(this, socket); 20 0 : return session; 21 : } 22 : 23 : private: 24 : DISALLOW_COPY_AND_ASSIGN(MetadataClient); 25 : }; 26 : 27 : #endif // vnsw_agent_metadata_client_h_