DemoServantImp.h 542 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _DemoServantImp_H_
  2. #define _DemoServantImp_H_
  3. #include "servant/Application.h"
  4. /**
  5. *
  6. *
  7. */
  8. class DemoServantImp : public Servant
  9. {
  10. public:
  11. /**
  12. *
  13. */
  14. virtual ~DemoServantImp() {}
  15. /**
  16. *
  17. */
  18. virtual void initialize();
  19. /**
  20. *
  21. */
  22. virtual void destroy();
  23. /**
  24. *
  25. */
  26. int doRequest(TarsCurrentPtr current, vector<char> &buffer);
  27. private:
  28. int doRequest(const TC_HttpRequest &req, TC_HttpResponse &rsp);
  29. };
  30. /////////////////////////////////////////////////////
  31. #endif