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