Webserver for peach-board
RequestHandler.h
- Committer:
- thudt90
- Date:
- 2015-03-04
- Revision:
- 0:6ec14f880a00
File content as of revision 0:6ec14f880a00:
#ifndef REQUEST_HANDLER #define REQUEST_HANDLER #include "RPCCommand.h" class RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply) = 0; }; class GetRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class PutRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class DeleteRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class ComplexRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); private : GetRequestHandler getHandler; PutRequestHandler putHandler; DeleteRequestHandler deleteHandler; }; #endif