source: box/trunk/lib/httpserver/S3Simulator.h @ 2504

Revision 2504, 1.1 KB checked in by chris, 3 years ago (diff)

Move S3Simulator into its own class, like S3Client, for reuse elsewhere.

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
Line 
1// --------------------------------------------------------------------------
2//
3// File
4//              Name:    S3Simulator.h
5//              Purpose: Amazon S3 simulation HTTP server for S3 testing
6//              Created: 09/01/2009
7//
8// --------------------------------------------------------------------------
9
10#ifndef S3SIMULATOR__H
11#define S3SIMULATOR__H
12
13#include "HTTPServer.h"
14
15class ConfigurationVerify;
16class HTTPRequest;
17class HTTPResponse;
18
19// --------------------------------------------------------------------------
20//
21// Class
22//              Name:    S3Simulator
23//              Purpose: Amazon S3 simulation HTTP server for S3 testing
24//              Created: 09/01/2009
25//
26// --------------------------------------------------------------------------
27class S3Simulator : public HTTPServer
28{
29public:
30        S3Simulator() { }
31        ~S3Simulator() { }
32
33        const ConfigurationVerify* GetConfigVerify() const;
34        virtual void Handle(HTTPRequest &rRequest, HTTPResponse &rResponse);
35        virtual void HandleGet(HTTPRequest &rRequest, HTTPResponse &rResponse);
36        virtual void HandlePut(HTTPRequest &rRequest, HTTPResponse &rResponse);
37};
38
39#endif // S3SIMULATOR__H
40
Note: See TracBrowser for help on using the repository browser.