diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-04-13 18:40:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-04-13 18:40:50 +0000 |
commit | 03103b5a44e48735a1fe24156c7859c530298fad (patch) | |
tree | 8b36782c9bda728c432782829e7e9b236ae6caa0 /lib/httpserver/S3Simulator.h | |
parent | aec3fa23a75124d860f48b9007858ec1cb641623 (diff) |
Move S3Simulator into its own class, like S3Client, for reuse elsewhere.
Diffstat (limited to 'lib/httpserver/S3Simulator.h')
-rw-r--r-- | lib/httpserver/S3Simulator.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/httpserver/S3Simulator.h b/lib/httpserver/S3Simulator.h new file mode 100644 index 00000000..f80770ee --- /dev/null +++ b/lib/httpserver/S3Simulator.h @@ -0,0 +1,40 @@ +// -------------------------------------------------------------------------- +// +// File +// Name: S3Simulator.h +// Purpose: Amazon S3 simulation HTTP server for S3 testing +// Created: 09/01/2009 +// +// -------------------------------------------------------------------------- + +#ifndef S3SIMULATOR__H +#define S3SIMULATOR__H + +#include "HTTPServer.h" + +class ConfigurationVerify; +class HTTPRequest; +class HTTPResponse; + +// -------------------------------------------------------------------------- +// +// Class +// Name: S3Simulator +// Purpose: Amazon S3 simulation HTTP server for S3 testing +// Created: 09/01/2009 +// +// -------------------------------------------------------------------------- +class S3Simulator : public HTTPServer +{ +public: + S3Simulator() { } + ~S3Simulator() { } + + const ConfigurationVerify* GetConfigVerify() const; + virtual void Handle(HTTPRequest &rRequest, HTTPResponse &rResponse); + virtual void HandleGet(HTTPRequest &rRequest, HTTPResponse &rResponse); + virtual void HandlePut(HTTPRequest &rRequest, HTTPResponse &rResponse); +}; + +#endif // S3SIMULATOR__H + |